2016-12-09 1 views
1

Android Studio를 처음 사용했습니다.오류 : ': app : transformClassesWithDexForDebug'작업에 대한 실행이 실패했습니다. > java.lang.IllegalStateException : dx.jar가 누락되었습니다.

휴대 전화에서 내 앱을 테스트하고 싶지만 오류가 표시됩니다.

Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > java.lang.IllegalStateException: dx.jar is missing

저는 Windows 7을 사용하고 있습니다. & Android Studio 1.5. 가능한 솔루션은 무엇입니까?

답변

0

sdk 플랫폼 도구와 빌드 도구를 삭제하고 다시 설치하면 저에게 도움이되었습니다.

build.gradle도 업데이트 했습니까?

샘플 :

android { 
    compileSdkVersion 24 // this is important 
    buildToolsVersion "24" // this also 

    defaultConfig { 
     applicationId "org.bamboomy.yarne" 
     minSdkVersion 15 
     targetSdkVersion 24 // recommended 
     versionCode 1 
     versionName "1.0" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:24.0.0' // and don't forget this 
    compile 'com.android.support:design:24.0.0' // and this 
} 
관련 문제