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

Wahib picture Wahib · Apr 5, 2015 · Viewed 36.1k times · Source

I am building my android project when i got this error after import docx4j library in my project. What should i do to get rid of this exception.

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

Answer

souttab picture souttab · Jun 22, 2015

Add this to your file build. gradle

defaultConfig {
     multiDexEnabled true 
}