2016-10-01 3 views
0

나는 안드로이드 애플 리케이션을 개발하고 있습니다. 외부 라이브러리 spoon-runner-1.7.0-jar-with-dependencies.jar에서 이것을 사용하고 있는데, 응용 프로그램 결과 '오류 : 실행에 실패했습니다': app : transformClassesWithMultidexlistForDebug '를 실행하려고하면이 작업을 추가합니다.오류 : ': app : transformClassesWithMultidexlistForDebug'작업의 실행에 실패했습니다. extenal 라이브러리를 추가 한 후

com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_51\bin\java.exe'' finished with non-zero exit value 1`

내 Gradle을 파일

apply plugin: 'com.android.application' 
android { 
    compileSdkVersion 23 
    buildToolsVersion "23.0.3" 

    defaultConfig { 
     applicationId "venki.testapp" 
     minSdkVersion 16 
     targetSdkVersion 23 
     versionCode 1 
     versionName "1.0" 
     multiDexEnabled true 
    } 
    dexOptions { 
     javaMaxHeapSize "4g" 
     preDexLibraries = false 
     incremental = true; 

    } 

    compileOptions { 
     sourceCompatibility JavaVersion.VERSION_1_7 
     targetCompatibility JavaVersion.VERSION_1_7 
    } 


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

dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:23.4.0' 
    compile files('libs/spoon-runner-1.7.0-jar-with-dependencies.jar') 
} 

1 아래와 같습니다 나는 프로젝트를 청소하고 프로젝트를 다시 빌드 노력했다. 2. 또한 캐시를 무효화하고 android studio를 다시 시작하십시오. 3. 힙이 증가합니다. ** 4. ** android : name = "android.support.multidex.MultiDexApplication"

아무 도움이되지 않습니다. 이걸 도와주세요.

+0

줄을 지우고 fileTree (include : [ '* .jar'], dir : 'libs')를 컴파일하고 그것을 시도하십시오 –

+0

그 줄을 지운 후에도 결과가 동일합니다 –

답변

-1

일부 RAM 문제가 원인입니다. android studio를 닫고 Java 프로세스를 종료하고 응용 프로그램을 다시 실행하십시오.

+0

그게 도움이되지 않습니다 –

관련 문제