Jeeten Parmar
Jeeten Parmar

Reputation: 5787

Attribute "background" already defined with incompatible format in Android Studio

I imported my project from Eclipse to Android Studio. As it is merging all the files, I am getting error : Attribute "background" already defined with incompatible format.

Check my below libraries :

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'

I am new to Android Studio so I don't have any idea about how can I solved this. I tried to change that attribute name but there are many same names so I am unable to go ahead.

Please help me to solve this.

Upvotes: 3

Views: 4641

Answers (1)

Sujay
Sujay

Reputation: 3455

ActionBarSherlock is deprecated so migrate to AppCompat

Remove

 compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'

Add

 compile 'com.android.support:appcompat-v7:24.1.1'

Upvotes: 6

Related Questions