gradle - 任务“: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'
解决方案
对我来说,我必须添加以下内容。
实施 'com.android.support:support-v4:28.0.0'
推荐阅读
- javascript - 使用 AJAX 渲染 ASP.NET PartialView 不起作用
- arrays - 如何输出一系列分割线 Power Automate
- javascript - 正则表达式使每个单词的首字母大写,包括特殊字符
- python - Python 文件缓冲区存储在哪里?
- java - SMS Retriever API 中已发布 APK 上的 HASH 字符串键
- laravel - 从 VueRouter 访问 Vuex 状态
- r - 如何按年和月绘制平均密度
- sql - 计算每列中字符串的出现次数(Postgres)
- r - 如何使 selectInput 选择覆盖 dq_accordion?
- c# - 随机分配不同价值的钞票以适合总价值