Process 'command 'C:\Program Files\Java\jdk1.8.0_51\bin\java.exe'' finished with non-zero exit value

报错误:Error:Execution failed for task ':okhttp_and_retrofit:dexDebug'.

> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_51\bin\java.exe'' finished with non-zero exit value 2




解决:

在此module中的build.gradle中添加

defaultConfig {
        multiDexEnabled true
    }

你可能感兴趣的:(android-问题处理)