Android studio build inished with non-zero exit value 1

android studio build 比较大的工程时,出现如下错误:
* What went wrong:
Execution failed for task ':pandabusDriver:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1



解决方法:
dexOptions {

        javaMaxHeapSize "3G"

    }

你可能感兴趣的:(android,android,Studio)