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

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

    I resolved all of my issues by adding this into project.properties

    cordova.system.library.7=com.android.support:appcompat-v7:27.1.0
    
    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题