我需要在我的项目中使用ActionBarSherlock和。SwipeListView我在 build.gradle 文件中添加了以下依赖项:
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile('com.fortysevendeg.swipelistview:swipelistview:1.0-SNAPSHOT@aar') {
transitive = true
}
我收到以下错误:Attribute xxx has already been defined。我想这个问题是因为SwipeListView使用 appcompat-v7 作为依赖项,并且ActionBarSherlock和 v7 不兼容,如您在此处看到的那样。
在我的项目中使用 gradleActionBarSherlock的正确方法是什么?SwipeListView