2016-08-25 2 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') 또는이 줄을 추가하십시오. (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

관련 문제