android studio build 比较大的工程时,出现如下错误:
[color=red]* 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[/color]
解决方法:
dexOptions {
javaMaxHeapSize "3G"
}
[color=red]* 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[/color]
解决方法:
dexOptions {
javaMaxHeapSize "3G"
}