Attribute "titleTextStyle" has already been defined

3

I try to compile my project but I get these types of errors

  

"Error: (2) Attribute" titleTextStyle "has already been defined"

this is my gradle

dependencies {
compile 'com.android.support:multidex:1.0.0'
compile project(':library')
compile project(':androidswitchbackport')
compile project(':urlImageViewHelper')
compile fileTree(include: ['*.jar'], dir: 'libs')
//compile 'com.android.support:appcompat-v7:21.+'
compile files('libs/FlurryAnalytics-4.2.0.jar')
compile('com.crashlytics.sdk.android:crashlytics:2.4.0@aar') {
    transitive = true;
}
//compile 'uk.co.chrisjenx:calligraphy:2.2.0'
compile 'com.android.support:support-v4:22.1.1'
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile 'com.google.android.gms:play-services:8.1.0'
compile 'org.apache.commons:commons-collections4:4.0'
compile 'org.apache.commons:commons-lang3:3.1'
compile 'org.apache.httpcomponents:httpmime:4.3.3'
compile 'org.apache.httpcomponents:httpcore:4.4.1'
compile 'com.facebook.android:facebook-android-sdk:4.1.0'
compile 'com.loopj.android:android-async-http:1.4.7'
compile 'com.melnykov:floatingactionbutton:1.3.0'
compile 'org.apache.sanselan:sanselan:0.97-incubator'
compile 'com.cocosw:bottomsheet:1.+@aar'
compile 'org.lucasr.twowayview:twowayview:0.1.4'
compile 'com.viewpagerindicator:library:2.4.1'
compile 'joda-time:joda-time:2.4'
compile 'com.google.android.gms:play-services-ads:8.1.0'
compile 'com.google.android.gms:play-services-identity:8.1.0'
compile 'com.google.android.gms:play-services-gcm:8.1.0'

}

    
asked by Kenny Romero 04.05.2016 в 21:49
source

1 answer

1

The problem is that you have double definition of the attribute titleTextStyle , which is found in more than one of your libraries, one is in the library:

compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'

This is going to be a problem since you should have only one definition in your project and the libraries.

I would advise you to stop using AndroidSherlock, if you see the project has some time that is not updated, in fact it is marked as obsolete : link

The main reason is that there are native options within the Android SDK to create your own ActionBar for example using the class Toolbar .

    
answered by 04.05.2016 в 22:11