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
the same as my error
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 2enter code here
it is because there is a duplication of its dependency lib, in my case like this
compile files('libs/httpcore-4.3.3.jar')
compile files('libs/httpmime-4.3.6.jar')
compile fileTree(include: ['*.jar'], dir: 'libs')
then I fixed it to be like this
compile fileTree(include: ['*.jar'], dir: 'libs')
remove other setting import lib
I hope this helps