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

fabbymee 2021-05-25 04:25:57
Duplicate class android.support.v4.app.INotificationSideChannel found in modules core-1.3.1-runtime (androidx.core:core:1.3.1) and support-v4-22.2.0-runtime (com.android.support:support-v4:22.2.0)
...全文
2396 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Krisez 2021-05-25
  • 打赏
  • 举报
回复
androidx和support混用了
fabbymee 2021-05-25
  • 打赏
  • 举报
回复
You can add below lines into your gradle.properties file: android.useAndroidX=true android.enableJetifier=true Details: If you want to use androidx-namespaced libraries in a new project, you need to set the compile SDK to Android 9.0 (API level 28) or higher and set both of the mentioned Android Gradle plugin flags to true. android.useAndroidX: When this flag is set to true, the Android plugin uses the appropriate AndroidX library instead of a Support Library. The flag is false by default if it is not specified. android.enableJetifier: When this flag is set to true, the Android plugin automatically migrates existing third-party libraries to use AndroidX dependencies by rewriting their binaries. The flag is false by default if it is not specified.

80,470

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧