app:dexDebug在构建Android项目时失败了

时间:2015-10-26 08:04:17

标签: android debugging android-studio build compilation

我在Android Studio中构建项目时遇到此错误:

Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

我确实打开了multiDexEnabled,我不知道为什么会这样。

1 个答案:

答案 0 :(得分:1)

这不是65K超出问题(虽然它有点)...你需要检查模块的 build.Gradle 文件。当您尝试同时导入许多类似的库时发生错误;清理您的Gradle文件重新同步它&你应该好好去。