gradle - 任务 ':app:checkDebugDuplicateClasses'的执行失败

标签 gradle duplicates version

我手动实现28.0.0依赖关系,但发现重复的依赖关系(28.0.0和24.0.0)
所以我想从我的gradle文件中排除或删除此(support: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'

最佳答案

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

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

关于gradle - 任务 ':app:checkDebugDuplicateClasses'的执行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56196558/

相关文章:

javascript - Sonar 3.1 的 sonar-javascript-plugin 版本

svn - 使TeamCity将Subversion内部版本号集成到程序集版本中

maven - 将任意目录分配给Maven/Gradle中的软件包

java - 检查数组列表中的重复项

java - 如何在 Eclipse 中将 Gradle 转换为 Maven

r - 超过 n 个数字列中具有重复值的数据帧的平均行数

架构 arm64 的 IOS SDK/重复符号

javascript - 检测 IE 7 和 8 问题

android - 我的 settings.gradle 文件在哪里?

android - 如何切换到Gradle插件的非实验版本?