2016-08-25 9 views
0

この質問は多くの質問がありましたが、私はこの問題を解決できません。私は初心者です。エラー属性は既に定義されています

 

     dependencies { 
     compile 'com.android.support:support-v4:18.0.0' 
     compile 'com.google.android.gms:play-services:+' 
     compile 'com.actionbarsherlock:actionbarsherlock:[email protected]' 
     compile 'com.android.support:support-v4:18.0.0' 
     compile files('libs/StartAppInApp-2.4.7.jar') 
    } 

、これが私のエラーです: だから、そこに私のGradleのビルドにコードされている

 

    Error:(160) Attribute "background" already defined with incompatible format. 
    Error:(14) Original attribute defined here. 
    Error:(197) Attribute "navigationMode" already defined with incompatible format. 
    Error:(160) Original attribute defined here. 
    Error:(197) Attribute "displayOptions" already defined with incompatible format. 
    Error:(160) Original attribute defined here. 
    Error:(212) Attribute "windowMinWidthMajor" already defined with incompatible format. 
    Error:(206) Original attribute defined here. 
    Error:(212) Attribute "windowMinWidthMinor" already defined with incompatible format. 
    Error:(206) Original attribute defined here. 
    Error:(212) Attribute "actionBarSize" already defined with incompatible format. 
    Error:(206) Original attribute defined here. 
    Error:Execution failed for task ':app:processDebugResources'. 
    > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\Truc\AppData\Local\Android\Sdk\build-tools\24.0.1\aapt.exe'' finished with non-zero exit value 1 

ありがとうございます!

答えて

0

次の手順を実行してみてください。

  1. のlibsフォルダに.jarファイルを入れてください。
  2. 右クリックし、[ライブラリとして追加]をクリックします。
  3. 複数の.jarファイルがある場合は、ファイル「libs/StartAppInApp-2.4.7.jar」またはこの行を追加してください。コンパイルfileTree(dir: 'libs'、include: '* .jar ')
  4. クリーンなビルドを実行します。

この方法は私のために働いた。

+0

ありがとう、私はこれを試みたが、それは私のために働かない。私はこのエラーが出現したと思うactionbarsherlockが、私はそれを修正する方法を知らない。 – htantruc

+0

あなたはactionbarsherlockを使用することは必須ですか? AppCompatを使用すると、より最新のアクションバーを表示できます。見てください:http://android-developers.blogspot.com/2014/10/appcompat-v21-material-design-for-pre.html – RamithDR

関連する問題