【问题标题】:Execution failed for task ':app:checkDebugDuplicateClasses'任务“:app:checkDebugDuplicateClasses”执行失败
【发布时间】:2019-10-05 09:14:14
【问题描述】:

我手动实现了 28.0.0 依赖,但发现重复依赖(28.0.0 和 24.0.0) 所以我想从我的 gradle 文件中排除或删除这个(支持:24.0.0)依赖

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    testImplementation 'junit:junit:4.12'
    implementation files('libs/gcm.jar')
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation "com.android.support:support-core-utils:28.0.0"
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.google.android.gms:play-services-maps:10.2.1'
    implementation 'com.google.android.gms:play-services-gcm:10.2.1'
    implementation 'com.android.support:recyclerview-v7:28.0.0'
    implementation 'com.android.support:cardview-v7:28.0.0'
    implementation files('libs/httpclient-4.3.6.jar')
    implementation files('libs/httpcore-4.3.3.jar')
    implementation files('libs/httpmime-4.3.6.jar')
    implementation files('libs/Shutterbug-1.0.0.jar')
    implementation files('libs/YouTubeAndroidPlayerApi.jar')
    implementation files('libs/picasso-2.5.2.jar')
    implementation 'com.mcxiaoke.volley:library-aar:1.0.0'
    implementation 'com.github.siyamed:android-shape-imageview:0.9.+@aar'
    implementation 'com.github.bumptech.glide:glide:3.7.0'
    implementation 'com.google.android.gms:play-services-analytics:10.2.1'
    implementation 'com.google.firebase:firebase-messaging:10.2.1'
    implementation 'com.firebase:firebase-client-android:2.5.2'
}
apply plugin: 'com.google.gms.google-services'

【问题讨论】:

    标签: gradle duplicates version


    【解决方案1】:

    对我来说,我必须添加以下内容。

    实现'com.android.support:support-v4:28.0.0'

    【讨论】:

      猜你喜欢
      • 2022-10-20
      • 2021-10-09
      • 1970-01-01
      • 2021-08-11
      • 1970-01-01
      • 1970-01-01
      • 2020-03-07
      • 2023-03-15
      • 1970-01-01
      相关资源
      最近更新 更多