0
我編譯multidex項目和gradle這個給了我這樣的:transformClassesWithDexForDebug失敗非零退出值3
Execution failed for task ':Project:transformClassesWithDexForLiteDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java'' finished with non-zero exit value 3
我想這是因爲gradle這個運行的內存,並有解決方案,以補充:
dexOptions {
javaMaxHeapSize "4g"
}
但在我的情況下,我從gradle得到另一個錯誤:Cannot resolve symbol 'javaMaxHeapSize'
。
它只是不編譯。 任何幫助非常appresciated!
哪裏dexOptions? –