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
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

最新文章

  1. adb shell
  2. C#设置打开新窗口的位置
  3. Node.js包
  4. archlinux 内核编译笔记
  5. django 2
  6. CSS Sprites图片处理
  7. Mini2440 DM9000 驱动分析(一)
  8. 第三章——使用系统函数、存储过程和DBCC SQLPERF命令来监控SQLServer(3)
  9. thinkphp 支付宝错误 Class 'Think' not found
  10. 关于bootstrap原理及优缺点
  11. python飞机大战代码
  12. Python中join()函数方法
  13. 2018-icpc沈阳-G-思维
  14. Spark学习笔记——数据读取和保存
  15. dom响应事件
  16. eclipse查看方法被那些代码调用open call hierarchy
  17. js实现双向链表
  18. 【9】python关于os模块与os.path的相关操作
  19. OFART: OpenFlow-Switch Adaptive Random Testing
  20. matlab --- plot画图

热门文章

  1. python中使用pip 安装第三方库报错归类及解决方式
  2. python安装过程
  3. Linux基础第一章 概述
  4. RestTemplate获取json数组
  5. elasticsearch之单请求多查询
  6. 诗词API
  7. mysql游标最后一行重复问题
  8. ArcGIS工具 - 导出数据库结构
  9. 【白话模电1】PN结与二极管
  10. day05-Spring管理Bean-IOC-03