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

前端 未结 26 3583
伪装坚强ぢ
伪装坚强ぢ 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:59

    I've had the same issue. In my project, I had the following dependencies :

    • appcompat-v7
    • android-support-v13

    For legacy reasons, the appcompat was fetched from the Google Maven repo, whereas the android-support was a local .jar.

    When I figured out this, and replaced this local reference with a maven reference, it just solved my build issue.

    Here's the diff of my app/build.gradle :

提交回复
热议问题