属性“ titleTextStyle”在Android Studio 1.2.1中已经定义? [英] Attribute "titleTextStyle" has already been defined in android studio 1.2.1?

查看:209
本文介绍了属性“ titleTextStyle”在Android Studio 1.2.1中已经定义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是我的应用依赖项

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库。就我而言,两者都是必需的。如何解决已定义的属性问题?

I am using ActionBarSherlock in my module and appcompat v7 library in my application. In my case both are required. How can I solve the "attribute already defined" issue?

我在应用中使用的版本:

buildToolsVersion 22.0.1

targetSdkVersion 21

The versions I use in my app:
buildToolsVersion 22.0.1
targetSdkVersion 21

推荐答案

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

You can't use appcompat-v7 and actionbarsherlock at the same time, just use one of them.

这篇关于属性“ titleTextStyle”在Android Studio 1.2.1中已经定义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆