【发布时间】:2015-05-15 19:26:23
【问题描述】:
我读过这个 Error after adding dependencies to Action Bar Sherlock in Android Studio 0.5.8 但没有帮助我。
我在 github 中找到了几个 android 自定义对话框库。 但是当我将每一个都包含在依赖项中时,gradle 给了我错误:
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'.
我尝试了四个库,但给了我同样的错误。
【问题讨论】: