2016-09-29 4 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、libraryIndi​​catorsなど)とは何ですか?これらはいずれも依存関係としてappcompatを持っていますか? –

+0

これは、以前に使用された統合です。彼らはappcompat依存関係を持っていません。 –

答えて

0

最初のテキストダンプに記載されているオブジェクトのすべてがコードの他の場所で定義されているように見えます。これらの項目をvalues.xmlからコメントアウトして、それがコンパイルされているかどうかを確認してください。

関連する問題