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

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

    exclude module: 'support-v4'
    

    Would not work for me with a project dependency, the only way I could get it to work was via the following syntax:

    configurations {
        dependencies {
            compile(project(':Android-SDK')) {
                compile.exclude module: 'support-v4'
            }
        }
    }
    

    Where :Android-SDK is your project name.

提交回复
热议问题