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

前端 未结 7 1326
小蘑菇
小蘑菇 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:50

    I ran into the same problem and I did add the multiDexEnabled true in build file but all in vain. But doing the following along with adding multiDexEnabled true in defaultConfig solved my problem.

    Add the MultiDexApplication in your manifest like :

    
    
        
            ...
        
    
    

    And dont forget to add

    defaultConfig {
         multiDexEnabled true 
    }
    

    The did the trick for me. Ref : Android Studio fails to debug with error org.gradle.process.internal.ExecException

提交回复
热议问题