Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat

前端 未结 26 3057
伪装坚强ぢ
伪装坚强ぢ 2020-11-22 02:29

If I run gradle assembleDebug from the command line, I am suddenly getting this error:

UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dx.util.DexEx         


        
26条回答
  •  梦谈多话
    2020-11-22 02:58

    I solved similar error by adding following piece of code to my build.gradle file inside the android block.

    android {
        dexOptions {
            preDexLibraries = false
        }
    }
    

提交回复
热议问题