属性“titleTextStyle”已经定义

时间:2016-05-04 20:38:38

标签: android gradle

我尝试编译我的项目但是我得到了这些类型的错误

"Error: (2) Attribute" titleTextStyle "has Already Been defined"

这是我的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'
}

我在这个问题上看到了很多问题和答案,但没有一个对我有用:(

1 个答案:

答案 0 :(得分:-1)

这不是Gradle或Gradle文件的问题。

检查XML布局文件并查找" titleTextStyle" (很可能是在TextView或其他一些小部件中)。你很可能有重复。