com.android.dex.DexException: Multiple dex files define

后端 未结 5 631
暗喜
暗喜 2021-01-01 10:05

I am using Android Studio 0.4.2. Opened project from a friend who is using 0.3.2. Tried to compile but got exception.

Execution failed for task \':JuiceTV:d         


        
5条回答
  •  星月不相逢
    2021-01-01 10:41

    Having multiDex disabled and incremental in dexOptions enabled will also cause this issue.

    defaultConfig {
        multiDexEnabled = false
     }
    dexOptions {
        javaMaxHeapSize "4g"
        incremental true
    }
    

提交回复
热议问题