我已经迁移到 Android Studio 2.0 预览版,无论我做什么,我都会:
Error:Execution failed for task ':transformClassesWithDexForDebug'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\jdk7\bin\java.exe'' finished with non-zero exit value 2
非常感谢任何帮助!
最佳答案
在您的 build.gradle 脚本中,将 dexOptions.javaMaxHeapSize 配置设置为您需要的任何值:
android {
//snip
//add this into your existing 'android' block
dexOptions {
javaMaxHeapSize "4g"
}
//snip
}
关于android - 任务 ':transformClassesWithDexForDebug' 执行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33962817/