gpt4 book ai didi

android - appcompat-v7 与其他依赖项冲突

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

我读过这个 Error after adding dependencies to Action Bar Sherlock in Android Studio 0.5.8但对我没有帮助。

我在github上找到了几个android自定义对话框库。但是当我将每一个都包含在依赖项中时,gradle 给了我 theis 错误:

Warning:string 'abs__activity_chooser_view_dialog_title_default' has no default translation.
Warning:string 'abs__share_action_provider_share_with' has no default translation.
F:\Work\workspace\NITask\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\values\values.xml
Error:Attribute "titleTextStyle" has already been defined
Error:Attribute "subtitleTextStyle" has already been defined
Error:Attribute "divider" has already been defined
Error:Attribute "background" has already been defined
Error:Attribute "backgroundSplit" has already been defined
Error:Attribute "navigationMode" has already been defined
Error:Attribute "displayOptions" has already been defined
Error:Attribute "title" has already been defined
Error:Attribute "subtitle" has already been defined
Error:Attribute "icon" has already been defined
.
.
.
.
Error:Attribute "dropDownListViewStyle" has already been defined
Error:Attribute "listPopupWindowStyle" has already been defined
Error:Attribute "textAppearanceListItemSmall" has already been defined
Error:Execution failed for task ':app:processDebugResources'.

我尝试了四个库,但给出了同样的错误。

最佳答案

将其放入 build.gradle 的 android { 部分:

dexOptions {
preDexLibraries = true
}

如果这不起作用,请尝试删除已在子项目中声明的库。例如,如果任何子项目具有“appcompat”依赖项,而您在主项目中声明了一个 - 删除主项目中的“appcompat”依赖项。

关于android - appcompat-v7 与其他依赖项冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30257442/

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