2016-09-29 2 views
0

좋은 하루 모두.내 프로젝트에 appcompat를 포함하는 것에 관한 문제

내 프로젝트에서 내 프로젝트 v7 라이브러리에 사용하려고합니다.

이미 SDK 관리자에서 다운로드했습니다. 그러나 프로젝트를 컴파일하려고 할 때 문제가 발생합니다. 그것은 내가 이미 그 값들을 정의하고 있음을 말해 주지만, 나는이 값들이 어디서 오는지를 모른다.

{project_path}\build\intermediates\res\merged\debug\values\values.xml 
Error:(219) Attribute "titleTextStyle" has already been defined 
Error:(219) Attribute "subtitleTextStyle" has already been defined 
Error:(219) Attribute "divider" has already been defined 
Error:(219) Attribute "background" has already been defined 
Error:(219) Attribute "backgroundSplit" has already been defined 
Error:(245) Attribute "dividerPadding" has already been defined 
Error:(245) Attribute "textAllCaps" has already been defined 
Error:(251) Attribute "navigationMode" has already been defined 
Error:(259) Attribute "displayOptions" has already been defined 
Error:(266) Attribute "title" has already been defined 
Error:(266) Attribute "subtitle" has already been defined 
Error:(266) Attribute "icon" has already been defined 
Error:(266) Attribute "logo" has already been defined 
Error:(266) Attribute "backgroundStacked" has already been defined 
Error:(266) Attribute "customNavigationLayout" has already been defined 
Error:(266) Attribute "homeLayout" has already been defined 
Error:(266) Attribute "progressBarStyle" has already been defined 
Error:(266) Attribute "indeterminateProgressStyle" has already been defined 
Error:(266) Attribute "progressBarPadding" has already been defined 
Error:(266) Attribute "itemPadding" has already been defined 
Error:(269) Attribute "initialActivityCount" has already been defined 
Error:(269) Attribute "expandActivityOverflowButtonDrawable" has already been defined 
Error:(272) Attribute "itemTextAppearance" has already been defined 
Error:(272) Attribute "itemBackground" has already been defined 
Error:(272) Attribute "preserveIconSpacing" has already been defined 
Error:(273) Attribute "iconifiedByDefault" has already been defined 
Error:(273) Attribute "queryHint" has already been defined 
Error:(292) Attribute "tabBackground" has already been defined 
Error:(295) Attribute "windowActionBar" has already been defined 
Error:(295) Attribute "windowNoTitle" has already been defined 
Error:(295) Attribute "windowActionBarOverlay" has already been defined 
Error:(295) Attribute "windowActionModeOverlay" has already been defined 
Error:(295) Attribute "windowMinWidthMajor" has already been defined 
Error:(295) Attribute "windowMinWidthMinor" has already been defined 
... 

내 build.gradle

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 23 
    buildToolsVersion "23.0.1" 

    defaultConfig { 
     applicationId "com.app" 
     minSdkVersion 8 
     targetSdkVersion 23 
    } 

    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' 
     } 
    } 
} 

dependencies { 
    compile project(':facebookSDK') 
    compile project(':libraryIndicators') 
    compile project(':library') 
    compile project(':librarySlide') 
    compile 'com.android.support:appcompat-v7:23.0.1' 
    compile 'com.android.support:design:23.0.1' 
    compile 'com.android.support:support-v4:23.0.1' 

    compile files('libs/libGoogleAnalyticsServices.jar') 
} 

나는 그것으로도 컴파일하기 위해 노력하고있어 다른 프로젝트에 문제가있는 경우 나도 몰라입니다.

+0

다른 프로젝트 (facebookSDK, libraryIndicators 등)는 무엇입니까? 이것들은 종속물로서 appcompat되어 있습니까? –

+0

이전에 사용 된 일부 통합입니다. 그들은 appcompat 의존성이 없습니다. –

답변

0

첫 번째 텍스트 덤프에 나열된 모든 개체가 코드의 다른 곳에서 정의 된 것처럼 보입니다. values.xml에서 이러한 항목을 주석 처리하고 컴파일되었는지 확인하십시오.

관련 문제