Okay, i know this question have been asked a lot.. And, i also have tried several methods posted in SO. But none seems to work for me.
So, here's how i do it. I add this line of code inside dependencies in my gradle files:
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
But then when i try to sync my project with gradle, it gives me these error:
Gradle invocation completed successfully with 75 error(s) in 30 sec
These are the errors:
D:RandomProjectsSwipeExperimentSwipeExperimentuildexploded-aarcom.android.supportappcompat-v719.1.0
esvaluesvalues.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:RandomProjectsSwipeExperimentSwipeExperimentuildexploded-aarcom.actionbarsherlockactionbarsherlock4.4.0
esvaluesvalues.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
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…