首页 > 解决方案 > 任务“:app:checkDebugDuplicateClasses”执行失败

问题描述

我手动实现 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'

标签: gradleduplicatesversion

解决方案


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

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


推荐阅读