当前位置:  开发笔记 > Android > 正文

在Android Studio 0.8.9上导入actionbarsherlock

如何解决《在AndroidStudio0.8.9上导入actionbarsherlock》经验,为你挑选了1个好方法。

我在导入时遇到问题ActionBarSherlock.我正在使用Android Studio 0.8.9.我build.gradle根据这个修改我的文件.但我得错了can not resolve symbol 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:processDebugResources
D:\CodeBunch\Android\DataBudaya\app\build\intermediates\exploded-aar\com.actionbarsherlock\actionbarsherlock\4.4.0\res\values\values.xml
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 "logo" has already been defined
Error:Attribute "backgroundStacked" has already been defined
Error:Attribute "customNavigationLayout" has already been defined
Error:Attribute "homeLayout" has already been defined
Error:Attribute "progressBarStyle" has already been defined
Error:Attribute "indeterminateProgressStyle" has already been defined
Error:Attribute "progressBarPadding" has already been defined
Error:Attribute "itemPadding" has already been defined
Error:Attribute "initialActivityCount" has already been defined
Error:Attribute "expandActivityOverflowButtonDrawable" has already been defined
Error:Attribute "iconifiedByDefault" has already been defined
Error:Attribute "queryHint" has already been defined
Error:Attribute "actionBarTabStyle" has already been defined
Error:Attribute "actionBarTabBarStyle" has already been defined
Error:Attribute "actionBarTabTextStyle" has already been defined
Error:Attribute "actionOverflowButtonStyle" has already been defined
Error:Attribute "actionBarStyle" has already been defined
Error:Attribute "actionBarSplitStyle" has already been defined
Error:Attribute "actionBarWidgetTheme" has already been defined
Error:Attribute "actionBarSize" has already been defined
Error:Attribute "actionBarDivider" has already been defined
Error:Attribute "actionBarItemBackground" has already been defined
Error:Attribute "actionMenuTextAppearance" has already been defined
Error:Attribute "actionMenuTextColor" has already been defined
Error:Attribute "actionModeStyle" has already been defined
Error:Attribute "actionModeCloseButtonStyle" has already been defined
Error:Attribute "actionModeBackground" has already been defined
Error:Attribute "actionModeSplitBackground" has already been defined
Error:Attribute "actionModeCloseDrawable" has already been defined
Error:Attribute "actionModeShareDrawable" has already been defined
Error:Attribute "actionModePopupWindowStyle" has already been defined
Error:Attribute "selectableItemBackground" has already been defined
Error:Attribute "textAppearanceLargePopupMenu" has already been defined
Error:Attribute "textAppearanceSmallPopupMenu" has already been defined
Error:Attribute "spinnerDropDownItemStyle" has already been defined
Error:Attribute "searchDropdownBackground" has already been defined
Error:Attribute "searchViewCloseIcon" has already been defined
Error:Attribute "searchViewGoIcon" has already been defined
Error:Attribute "searchViewSearchIcon" has already been defined
Error:Attribute "searchViewVoiceIcon" has already been defined
Error:Attribute "searchViewEditQuery" has already been defined
Error:Attribute "searchViewEditQueryBackground" has already been defined
Error:Attribute "searchViewTextField" has already been defined
Error:Attribute "searchViewTextFieldRight" has already been defined
Error:Attribute "textColorSearchUrl" has already been defined
Error:Attribute "searchResultListItemHeight" has already been defined
Error:Attribute "textAppearanceSearchResultTitle" has already been defined
Error:Attribute "textAppearanceSearchResultSubtitle" has already been defined
Error:Attribute "listPreferredItemHeightSmall" has already been defined
Error:Attribute "listPreferredItemPaddingLeft" has already been defined
Error:Attribute "listPreferredItemPaddingRight" has already been defined
Error:Attribute "textAppearanceListItemSmall" has already been defined
Error:Attribute "dividerVertical" has already been defined
Error:Attribute "actionButtonStyle" has already been defined
Error:Attribute "homeAsUpIndicator" has already been defined
Error:Attribute "dropDownListViewStyle" has already been defined
Error:Attribute "windowActionBar" has already been defined
Error:Attribute "windowActionBarOverlay" has already been defined
Error:Attribute "windowSplitActionBar" has already been defined
Error:Attribute "listPopupWindowStyle" has already been defined
Error:Attribute "activityChooserViewStyle" has already been defined

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



1> Gabriele Mar..:

你正在使用appcompat-v7ActionBarSherlock在一起.

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

您必须删除其中一个库.

推荐阅读
周扒pi
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有