在Android Studio 0.8.9上导入actionbarsherlock

在Android Studio 0.8.9上导入actionbarsherlock,第1张

概述导入ActionBarSherlock时出现问题.我正在使用 Android Studio 0.8.9.我根据 this修改了我的build.gradle文件.但我得到错误告诉无法解析符号R. 以下是导入ActionBarSherlock后的错误消息: Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugTe 导入ActionbarSherlock时出现问题.我正在使用 Android Studio 0.8.9.我根据 this修改了我的build.gradle文件.但我得到错误告诉无法解析符号R.

以下是导入ActionbarSherlock后的错误消息:

information:Gradle tasks [:app:generateDeBUGSources,:app:generateDeBUGTestSources]:app:preBuild:app:preDeBUGBuild:app:checkDeBUGManifest:app:preReleaseBuild:app:prepareComActionbarsherlockActionbarsherlock440library UP-TO-DATE:app:prepareComAndroIDSupportAppcompatV72000library UP-TO-DATE:app:prepareComAndroIDSupportSupportV42000library UP-TO-DATE:app:prepareComGoogleAndroIDGmsPlayServices5089library UP-TO-DATE:app:prepareDeBUGDependencIEs:app:compileDeBUGAIDl UP-TO-DATE:app:compileDeBUGRenderscript UP-TO-DATE:app:generateDeBUGBuildConfig UP-TO-DATE:app:generateDeBUGAssets UP-TO-DATE:app:mergeDeBUGAssets UP-TO-DATE:app:generateDeBUGResValues UP-TO-DATE:app:generateDeBUGResources UP-TO-DATE:app:mergeDeBUGResources UP-TO-DATE:app:processDeBUGManifest UP-TO-DATE:app:processDeBUGResourcesD:\CodeBunch\AndroID\DataBudaya\app\build\intermediates\exploded-aar\com.actionbarsherlock\actionbarsherlock.4.0\res\values\values.xmlError:Attribute "navigationMode" has already been definedError:Attribute "displayOptions" has already been definedError:Attribute "Title" has already been definedError:Attribute "subTitle" has already been definedError:Attribute "icon" has already been definedError:Attribute "logo" has already been definedError:Attribute "backgroundStacked" has already been definedError:Attribute "customNavigationLayout" has already been definedError:Attribute "homeLayout" has already been definedError:Attribute "progressbarStyle" has already been definedError:Attribute "indeterminateProgressstyle" has already been definedError:Attribute "progressbarpadding" has already been definedError:Attribute "itempadding" has already been definedError:Attribute "initialActivityCount" has already been definedError:Attribute "expandActivityOverflowbuttonDrawable" has already been definedError:Attribute "iconifIEdByDefault" has already been definedError:Attribute "queryHint" has already been definedError:Attribute "actionbarTabStyle" has already been definedError:Attribute "actionbarTabbarStyle" has already been definedError:Attribute "actionbarTabTextStyle" has already been definedError:Attribute "actionOverflowbuttonStyle" has already been definedError:Attribute "actionbarStyle" has already been definedError:Attribute "actionbarSplitStyle" has already been definedError:Attribute "actionbarWidgettheme" has already been definedError:Attribute "actionbarSize" has already been definedError:Attribute "actionbardivIDer" has already been definedError:Attribute "actionbarItemBackground" has already been definedError:Attribute "actionMenuTextAppearance" has already been definedError:Attribute "actionMenuTextcolor" has already been definedError:Attribute "actionModeStyle" has already been definedError:Attribute "actionModeClosebuttonStyle" has already been definedError:Attribute "actionModeBackground" has already been definedError:Attribute "actionModeSplitBackground" has already been definedError:Attribute "actionModeCloseDrawable" has already been definedError:Attribute "actionModeShareDrawable" has already been definedError:Attribute "actionModePopupwindowstyle" has already been definedError:Attribute "selectableItemBackground" has already been definedError:Attribute "textAppearanceLargePopupMenu" has already been definedError:Attribute "textAppearanceSmallPopupMenu" has already been definedError:Attribute "spinnerDropDownItemStyle" has already been definedError:Attribute "searchDropdownBackground" has already been definedError:Attribute "searchVIEwCloseIcon" has already been definedError:Attribute "searchVIEwGoIcon" has already been definedError:Attribute "searchVIEwSearchIcon" has already been definedError:Attribute "searchVIEwVoiceIcon" has already been definedError:Attribute "searchVIEwEditquery" has already been definedError:Attribute "searchVIEwEditqueryBackground" has already been definedError:Attribute "searchVIEwTextFIEld" has already been definedError:Attribute "searchVIEwTextFIEldRight" has already been definedError:Attribute "textcolorSearchUrl" has already been definedError:Attribute "searchResultListItemHeight" has already been definedError:Attribute "textAppearanceSearchResultTitle" has already been definedError:Attribute "textAppearanceSearchResultSubTitle" has already been definedError:Attribute "ListPreferredItemHeightSmall" has already been definedError:Attribute "ListPreferredItempaddingleft" has already been definedError:Attribute "ListPreferredItempaddingRight" has already been definedError:Attribute "textAppearanceListItemSmall" has already been definedError:Attribute "divIDerVertical" has already been definedError:Attribute "actionbuttonStyle" has already been definedError:Attribute "homeAsUpIndicator" has already been definedError:Attribute "dropdownlistviewStyle" has already been definedError:Attribute "windowActionbar" has already been definedError:Attribute "windowActionbarOverlay" has already been definedError:Attribute "windowsplitactionbar" has already been definedError:Attribute "ListPopupwindowstyle" has already been definedError:Attribute "activityChooserVIEwStyle" has already been defined

我会感激任何帮助.谢谢.

解决方法 您正在使用appcompat-v7和ActionbarSherlock.

你不能这样做,因为它们都提供相同的样式属性.

您必须删除其中一个库.

总结

以上是内存溢出为你收集整理的在Android Studio 0.8.9上导入actionbarsherlock全部内容,希望文章能够帮你解决在Android Studio 0.8.9上导入actionbarsherlock所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1122675.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存