Gradle error “Attribute ”xxx“ has already been defined” in Android Studio

喜你入骨 提交于 2019-11-28 05:16:27

You should remove this line in your dependencies :

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

The last version of Google Play Services now uses appcompat-v7, so u can't use it with actionbarsherlock. You have to use only appcompat-v7 or the previous version of play services:

compile 'com.google.android.gms:play-services:7.0.0'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!