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

前端 未结 26 2986
伪装坚强ぢ
伪装坚强ぢ 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 03:10

    This is an annoying problem, that can take some time to find out the root case. The way you should proceed is @CommonsWare answer.

    I faced this problem recently and found it hard to resolve.

    My problem was i was including a library by "+" version in build.gradle. Latest version of library contained one of older dex and bang.

    I reverted to older version of library and solved it.

    It is good to run your androidDependencies and see what is really happening. Its also good to search in your build folder.

    Above all Android Studio 2.2 provide in build features to track this problem.

    Happy Coding Guys

提交回复
热议问题