【问题标题】:Attribute "titleTextStyle" has already been defined in android studio 1.2.1?android studio 1.2.1 中已经定义了属性“titleTextStyle”?
【发布时间】:2015-05-18 12:40:28
【问题描述】:

以下是我的应用依赖项

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:22.1.1'
    // compile 'com.android.support:support-v13:21.0.3'
    compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
    compile 'com.android.support:recyclerview-v7:21.0.0'
    compile 'com.android.support:cardview-v7:21.0.0'
    compile 'com.squareup.picasso:picasso:2.4.0'
    compile 'com.jakewharton:butterknife:5.1.2'
    compile files('src/libs/android_sync_service_library.jar')
    compile files('src/libs/gson-2.2.4.jar')
    compile 'com.google.android.gms:play-services:7.3.0'
    compile('com.crashlytics.sdk.android:crashlytics:2.2.2@aar') {
        transitive = true;
    }
    compile project('my module name')
}

和我的模块依赖项

dependencies {
    compile project(':ingosdk')
    compile 'com.google.code.gson:gson:2.2.4'
    compile files('libs/A2iA.Mobility.jar')
    compile files('libs/acra-4.5.0.jar')
    compile files('libs/bugsense-3.5.jar')
    compile files('libs/deviceprint-lib-1.0.0.jar')
    compile files('libs/espresso-1.1-bundled.jar')
    compile files('libs/FlurryAnalytics-5.3.0.jar')
    compile files('libs/httpmime-4.1.2.jar')
    compile files('libs/libGoogleAnalyticsServices.jar')
    compile files('libs/volley.jar')
}

我在我的模块中使用 ActionBarSherlock,在我的应用程序中使用 appcompat v7 库。在我的情况下,两者都是必需的。如何解决“属性已定义”的问题?

我在应用中使用的版本:
buildToolsVersion 22.0.1
targetSdkVersion 21

【问题讨论】:

    标签: android android-actionbar actionbarsherlock android-appcompat


    【解决方案1】:

    appcompat-v7 和 actionbarsherlock 不能同时使用,只能使用其中之一。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-04-04
      • 1970-01-01
      • 2015-09-19
      • 1970-01-01
      • 2015-08-29
      • 1970-01-01
      • 2013-09-15
      • 1970-01-01
      相关资源
      最近更新 更多