java - 修复依赖解析错误 - 重复类错误
问题描述
Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and support-v4-23.4.0-runtime (com.android.support:support-v4:23.4.0)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and support-v4-23.4.0-runtime (com.android.support:support-v4:23.4.0)
Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and support-v4-23.4.0-runtime (com.android.support:support-v4:23.4.0)
Duplicate class android.support.v4.os.IResultReceiver found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and support-v4-23.4.0-runtime (com.android.support:support-v4:23.4.0)
Duplicate class android.support.v4.os.IResultReceiver$Stub found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and support-v4-23.4.0-runtime (com.android.support:support-v4:23.4.0)
Duplicate class android.support.v4.os.IResultReceiver$Stub$Proxy found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and support-v4-23.4.0-runtime (com.android.support:support-v4:23.4.0)
Duplicate class android.support.v4.os.ResultReceiver found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and support-v4-23.4.0-runtime (com.android.support:support-v4:23.4.0)
Duplicate class android.support.v4.os.ResultReceiver$1 found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and support-v4-23.4.0-runtime (com.android.support:support-v4:23.4.0)
Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and support-v4-23.4.0-runtime (com.android.support:support-v4:23.4.0)
Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules core-1.5.0-runtime (androidx.core:core:1.5.0) and support-v4-23.4.0-runtime (com.android.support:support-v4:23.4.0)
Go to the documentation to learn how to Fix dependency resolution errors.**strong text**
在构建中遇到此错误将运行应用程序
通过添加此依赖项....
implementation 'com.thebluealliance:spectrum:0.7.1'
implementation 'com.karumi:dexter:6.2.3'
implementation 'com.github.QuadFlask:colorpicker:0.0.15'
解决方案
请注意,一些 .jar 库与本地已经可用的依赖项捆绑在一起。因此,通过删除新添加的库之一可以解决问题...查找不附带已存在依赖项的库,或者您可以删除依赖项部分中的所有内容并仅添加库,同步项目。并一一添加其他依赖..
推荐阅读
- reactjs - 一起使用 React.useState 和 useSelector 会导致选择器持续触发
- python - Pydub错误加载文件:未知编码器'pcm_s4le'
- webserver - 如何使用我的公共和本地 IP 地址连接到在我的机器上运行的 Web 服务器,而无需端口转发或 VPN
- flutter - 重置 WheelChooser 小部件初始值
- python - 如何将嵌套字典更改为字典列表?
- ssl - 我在哪里可以找到 elasticache redis 集群的 TLS 证书
- laravel - 我在 laravel livewire 的 crud 表中显示图像时遇到问题
- python - 如何使用 selenium python 从网页中单独获取过滤后的项目?
- c - 从C中的文件中读取多个整数行
- algorithm - 50 个学生小组的功能或循环结构是什么。这样他们在将他们分配到不同的组时就不会面对。怎么解决?