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"
}
本文介绍了解决Android Studio在构建大型项目时遇到的错误方法。主要针对任务执行失败和Java进程非零退出值的问题,通过调整dexOptions中的javaMaxHeapSize参数设置为3G来解决。
1872

被折叠的 条评论
为什么被折叠?



