Sikander Bhutto Sikander Bhutto - 2 years ago 365
Java Question

Execution failed for task ‘:app:dexDebug’. org.gradle.process.internal.ExecException

Error Log:

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

Answer Source

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
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download