返回顶部
首页 > 资讯 > 移动开发 >Android Duplicate class android.support.v4.app.INotificationSideChannel found in modules classes
  • 670
分享到

Android Duplicate class android.support.v4.app.INotificationSideChannel found in modules classes

androidandroidstudiogradle 2023-10-24 07:10:27 670人浏览 独家记忆
摘要

Android studio 编译时出现:Caused by: com.android.builder.errors.EvalIssueException: This project uses And

Android studio 编译时出现:Caused by: com.android.builder.errors.EvalIssueException: This project uses AndroidX dependencies, but the ‘android.useAndroidX’ property is not enabled. Set this property to true in the gradle.properties file and retry.

java.lang.RuntimeException: java.lang.RuntimeException: Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.3.1-runtime.jar (androidx.core:core:1.3.1) and support-compat-26.0.0-runtime.jar (com.android.support:support-compat:26.0.0)  Duplicate class android.support.v4.app.INotificationSideChannel$Stub found in modules core-1.3.1-runtime.jar (androidx.core:core:1.3.1) and support-compat-26.0.0-runtime.jar (com.android.support:support-compat:26.0.0)  Duplicate class android.support.v4.app.INotificationSideChannel$Stub$Proxy found in modules core-1.3.1-runtime.jar (androidx.core:core:1.3.1) and support-compat-26.0.0-runtime.jar (com.android.support:support-compat:26.0.0)  Duplicate class android.support.v4.os.IResultReceiver found in modules core-1.3.1-runtime.jar (androidx.core:core:1.3.1) and support-compat-26.0.0-runtime.jar (com.android.support:support-compat:26.0.0)  Duplicate class android.support.v4.os.IResultReceiver$Stub found in modules core-1.3.1-runtime.jar (androidx.core:core:1.3.1) and support-compat-26.0.0-runtime.jar (com.android.support:support-compat:26.0.0)  Duplicate class android.support.v4.os.IResultReceiver$Stub$Proxy found in modules core-1.3.1-runtime.jar (androidx.core:core:1.3.1) and support-compat-26.0.0-runtime.jar (com.android.support:support-compat:26.0.0)  Duplicate class android.support.v4.os.ResultReceiver found in modules core-1.3.1-runtime.jar (androidx.core:core:1.3.1) and support-compat-26.0.0-runtime.jar (com.android.support:support-compat:26.0.0)  Duplicate class android.support.v4.os.ResultReceiver$1 found in modules core-1.3.1-runtime.jar (androidx.core:core:1.3.1) and support-compat-26.0.0-runtime.jar (com.android.support:support-compat:26.0.0)  Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules core-1.3.1-runtime.jar (androidx.core:core:1.3.1) and support-compat-26.0.0-runtime.jar (com.android.support:support-compat:26.0.0)  Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules core-1.3.1-runtime.jar (androidx.core:core:1.3.1) and support-compat-26.0.0-runtime.jar (com.android.support:support-compat:26.0.0)

需要在需要在gradle.properties中添加代码:

android.useAndroidX=trueandroid.enableJetifier=true

来源地址:https://blog.csdn.net/Chen_xiaobao/article/details/129729009

--结束END--

本文标题: Android Duplicate class android.support.v4.app.INotificationSideChannel found in modules classes

本文链接: https://www.lsjlt.com/news/441188.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作