Execution failed for task ':app:checkDebugDuplicateClasses'解决办法
A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
> Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-compat-24.2.0-runtime (com.android.support:support-compat:24.2.0)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-compat-24.2.0-runtime (com.android.support:support-compat:24.2.0)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-compat-24.2.0-runtime (com.android.support:support-compat:24.2.0)
Duplicate class android.support.v4.os.IResultReceiver found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-compat-24.2.0-runtime (com.android.support:support-compat:24.2.0)
Duplicate class android.support.v4.os.IResultReceiver$Stub found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-compat-24.2.0-runtime (com.android.support:support-compat:24.2.0)
Duplicate class android.support.v4.os.IResultReceiver$Stub$Proxy found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-compat-24.2.0-runtime (com.android.support:support-compat:24.2.0)
解决方法
gradle.properties配置文件中,添加以下配置
# 表示使用AndroidX相关依赖
android.useAndroidX=true
# 表示将第三方库迁移到androidx
android.enableJetifier=true
作者:长离51129
链接:https://www.jianshu.com/p/81ffbf5beea4
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
最新文章
- adb shell
- C#设置打开新窗口的位置
- Node.js包
- archlinux 内核编译笔记
- django 2
- CSS Sprites图片处理
- Mini2440 DM9000 驱动分析(一)
- 第三章——使用系统函数、存储过程和DBCC SQLPERF命令来监控SQLServer(3)
- thinkphp 支付宝错误 Class 'Think' not found
- 关于bootstrap原理及优缺点
- python飞机大战代码
- Python中join()函数方法
- 2018-icpc沈阳-G-思维
- Spark学习笔记——数据读取和保存
- dom响应事件
- eclipse查看方法被那些代码调用open call hierarchy
- js实现双向链表
- 【9】python关于os模块与os.path的相关操作
- OFART: OpenFlow-Switch Adaptive Random Testing
- matlab --- plot画图