Error después de agregar dependencias a la barra de acción Sherlock en Android Studio 0.5.8
actionbarsherlock android-studio (1)
Su proyecto depende tanto de appcompat-v7
como de ActionBarSherlock
. Ambos proporcionan la misma funcionalidad y definen los mismos atributos de estilo, que son conflictivos.
Quite la ActionBarShelock
o appcompat-v7
.
Recomiendo usar ActionBar
desde appcompat-v7
lugar de ActionBarSherlock
.
Bien, sé que esta pregunta se ha preguntado mucho ... Y, también he probado varios métodos publicados en SO. Pero ninguno parece funcionar para mí.
Entonces, así es como lo hago. Añado esta línea de código dentro de las dependencias en mis archivos de gradle:
compile ''com.actionbarsherlock:actionbarsherlock:4.4.0@aar''
Pero luego, cuando intento sincronizar mi proyecto con gradle, me da estos errores:
Gradle invocation completed successfully with 75 error(s) in 30 sec
Estos son los errores:
D:/RandomProjects/SwipeExperiment/SwipeExperiment/build/exploded-aar/com.android.support/appcompat-v7/19.1.0/res/values/values.xml
Error:Attribute "titleTextStyle" has already been defined
Error:Attribute "subtitleTextStyle" has already been defined
Error:Attribute "divider" has already been defined
Error:Attribute "background" has already been defined
Error:Attribute "backgroundSplit" has already been defined
Error:Attribute "actionDropDownStyle" has already been defined
Error:Attribute "dropdownListPreferredItemHeight" has already been defined
Error:Attribute "popupMenuStyle" has already been defined
D:/RandomProjects/SwipeExperiment/SwipeExperiment/build/exploded-aar/com.actionbarsherlock/actionbarsherlock/4.4.0/res/values/values.xml
Error:Attribute "navigationMode" has already been defined
Error:Attribute "displayOptions" has already been defined
Error:Attribute "title" has already been defined
Error:Attribute "subtitle" has already been defined
Error:Attribute "icon" has already been defined
Error:Attribute "logo" has already been defined
Error:Attribute "backgroundStacked" has already been defined
.
.
.
Error:Attribute "windowActionBarOverlay" has already been defined
Error:Attribute "windowSplitActionBar" has already been defined
Error:Attribute "listPopupWindowStyle" has already been defined
Error:Attribute "activityChooserViewStyle" has already been defined