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

前端 未结 7 1317
小蘑菇
小蘑菇 2020-11-29 13:14

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

7条回答
  •  爱一瞬间的悲伤
    2020-11-29 13:35

    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

提交回复
热议问题