关闭

Duplicate class android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat

别叨叨 1年前 ⋅ 280 阅读
Duplicate class android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat found in modules support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0) and support-v4-24.1.1-runtime (com.android.support:support-v4:24.1.1)
Duplicate class android.support.v4.app.ActionBarDrawerToggle found in modules support-core-ui-28.0.0-runtime (com.android.support:support-core-ui:28.0.0) and support-v4-24.1.1-runtime (com.android.support:support-v4:24.1.1)
Duplicate class android.support.v4.app.ActionBarDrawerToggle$Delegate found in modules support-core-ui-28.0.0-runtime (com.android.support:support-core-ui:28.0.0) and support-v4-24.1.1-runtime (com.android.support:support-v4:24.1.1)
Duplicate class android.support.v4.app.ActionBarDrawerToggle$DelegateProvider found in modules support-core-ui-28.0.0-runtime (com.android.support:support-core-ui:28.0.0) and support-v4-24.1.1-runtime (com.android.support:support-v4:24.1.1)
Duplicate class android.support.v4.app.ActionBarDrawerToggle$SlideDrawable found in modules support-core-ui-28.0.0-runtime (com.android.support:support-core-ui:28.0.0) and support-v4-24.1.1-runtime (com.android.support:support-v4:24.1.1)
Duplicate class android.support.v4.app.ActivityCompat found in modules support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0) and support-v4-24.1.1-runtime (com.android.support:support-v4:24.1.1)
Duplicate class android.support.v4.app.ActivityCompat$1 found in modules support-compat-28.0.0-runtime (com.android.support:support-compat:28.0.0) and support-v4-24.1.1-runtime (com.android.support:support-v4:24.1.1)
 这是因为混合支持库。通过添加这些行选择androidX作为您的支持库
 需要在gradle.properties中添加下面两行代码
android.useAndroidX=true
android.enableJetifier=true

全部评论: 0

    我有话说: