属性"背景"已在Android Studio中使用不兼容的格式定义

Jee*_*mar 3 eclipse android attributes android-studio

我进口我的项目,从EclipseAndroid Studio.由于它正在合并所有文件,我收到错误:Attribute "background" already defined with incompatible format.

检查我的下面的库:

compile project(':staggeredGrid')
compile project(':mobikwikSDK')
compile 'com.android.support:support-v4:24.1.1'
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
Run Code Online (Sandbox Code Playgroud)

我是新手,Android Studio所以我不知道如何解决这个问题.我试图更改该属性名称,但有许多相同的名称,所以我无法继续.

请帮我解决这个问题.

sJy*_*sJy 6

不推荐使用ActionBarSherlock,因此请迁移到AppCompat

去掉

 compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
Run Code Online (Sandbox Code Playgroud)

 compile 'com.android.support:appcompat-v7:24.1.1'
Run Code Online (Sandbox Code Playgroud)