Ok, so che questa domanda è stata fatta molto .. E, ho anche provato diversi metodi pubblicati in SO. Ma nessuno sembra funzionare per me.Errore dopo l'aggiunta di dipendenze alla barra di azione Sherlock in Android Studio 0.5.8
Quindi, ecco come lo faccio. Aggiungo questa riga di codice all'interno dipendenze nei miei file Gradle:
compile 'com.actionbarsherlock:actionbarsherlock:[email protected]'
Ma poi quando provo a sincronizzare il mio progetto con Gradle, mi dà questi errori:
Gradle invocation completed successfully with 75 error(s) in 30 sec
Questi sono gli errori:
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
Ah, capisco .. ho avuto l'idea ora. Non ho mai incluso la libreria appcompat-v7 nel mio progetto eclipse, quindi fondamentalmente fa la stessa cosa dell'ABS. Devo saperne di più. – Milanor
Raccomando invece di usare ABS quando si tratta di attività di preferenza con la barra delle azioni. – vault