Sikander Bhutto Sikander Bhutto - 7 months ago 113
Java Question

Execution failed for task ‘:app:dexDebug’. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException

Error Log:

Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 2

Answer

If you have libraries and methods, then you can enable multi dex support by declaring it in the gradle config.

defaultConfig {        
    // Enabling multidex support.
    multiDexEnabled true
}
Comments