3

ActionBarSherlock을 가져올 때 문제가 있습니다. Android Studio 0.8.9을 사용하고 있습니다. build.gradle 파일을 this에 따라 수정합니다. 그러나 나는 그 오류를 can not resolve symbol R에게 말하고있다.Android Studio에서 액션 바를 가져 오는 중 0.8.9

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 

내가 어떤 도움 주셔서 감사합니다 :

여기 ActionBarSherlock의 가져 오기 후 오류 메시지가 있습니다. 고맙습니다.

답변

11

appcompat-v7ActionBarSherlock을 함께 사용하고 있습니다.

둘 다 같은 스타일 속성을 제공하기 때문에 할 수 없습니다.

이러한 라이브러리 중 하나를 제거해야합니다.

+0

고맙습니다. –

+0

@ 가브리엘 마리오 티 (Gabriele Mariotti)는 제가 둘 다 사용할 수있는 방법이 있습니까? 나는 사용자 정의 ActionBarActivity를 만들어야하는 다른 시나리오에 빠져있다. 또한 라이브러리에있는 AppCompact를 사용하고있다. SDK가있다. 포크로 바꾸고 변경할 수있다. – ShahrozKhan91

+1

@ ShahrozKhan91 Material Design을 사용하면 시간이있다. AppCompat로 마이그레이션하십시오. –

관련 문제