Android 属性“;titleTextStyle”;已经定义了

Android 属性“;titleTextStyle”;已经定义了,android,gradle,Android,Gradle,我试图编译我的项目,但我得到这些类型的错误 “错误:(2)已定义属性“titleTextStyle” 这是我的格拉德尔 dependencies { compile 'com.android.support:multidex:1.0.0' compile project(':library') compile project(':androidswitchbackport') compile project(':urlImageViewHelper') compile fileTree(incl

我试图编译我的项目,但我得到这些类型的错误

“错误:(2)已定义属性“titleTextStyle”

这是我的格拉德尔

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'
}

关于这个问题,我已经看到了很多问题和答案,但没有一个对我有用:(

这不是Gradle的问题,也不是你的Gradle文件的问题


检查XML布局文件并查找“
titleTextStyle
”(最有可能在TextView或其他小部件中)。您很可能有一个重复的属性。

Kenny,请参阅关于如何提问的。就您的问题而言,您的项目中可能定义了一个重复的
titleTextStyle
属性。在您的文件系统或IDE中搜索(在所有文件中查找)找出它的来源。发布logcat而不是gradle文件。这与gradle无关,它是您的xml文件之一,logcat会告诉我们是哪一个。1)确保您在所有模块中都使用相同版本的support LIB,如
support-v4
appcompat-v7
。2) 摆脱四年前的actionbarsherlock。您是否愿意只对错误内容进行简单的搜索?问题不在于该属性被多次使用,而在于它被多次定义。@Eugen Pechanec true。对不起,弄错了。