gpt4 book ai didi

gradle - 使用gradle的ActionBarSherlock和swipelistview

转载 作者:行者123 更新时间:2023-12-03 06:20:11 25 4
gpt4 key购买 nike

我需要在项目中使用ActionBarSherlockSwipeListView。我在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不兼容,因为您可以看到 here

使用gradle在我的项目中同时使用 ActionBarSherlockSwipeListView的正确方法是什么?

最佳答案

我在构建期间排除了appcompat-v7 lib。到目前为止,它似乎仍然有效。但是我担心它可能会在某些设备上崩溃

compile ('com.fortysevendeg.swipelistview:swipelistview:1.0-SNAPSHOT@aar') {
transitive = true
exclude module: 'support-v4'
exclude module: 'appcompat-v7'
compile 'com.android.support:support-v4:13.0.0'
}

我已经打开一个问题: https://github.com/47deg/android-swipelistview/issues/191来查看是否需要依赖。

关于gradle - 使用gradle的ActionBarSherlock和swipelistview,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26367882/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com