INotificationSideChannel
发布日期:2021-05-10 05:21:57 浏览次数:18 分类:技术文章

本文共 1205 字,大约阅读时间需要 4 分钟。

AGPBI: {
"kind":"error","text":"Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy","sources":[{
}],"tool":"D8"}:app:transformDexArchiveWithExternalLibsDexMergerForDevDebug FAILEDFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDevDebug'.> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: D:\demo_retrofit\RxHttpUtils-2.x\app\build\intermediates\transforms\dexBuilder\dev\debug\0.jar, D:\demo_retrofit\RxHttpUtils-2.x\app\build\intermediates\transforms\dexBuilder\dev\debug\1.jar, D:\demo_retrofit\RxHttpUtils- Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes. Program type already present: android.support.v4.app.INotificationSideChannel$Stub$Proxy* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 18s

原因1:包冲突

原因2:项目修改到 AndroidX,但是没有配置gradle.properties,需要添加:

android.enableJetifier=trueandroid.useAndroidX=true

转载地址:https://blog.csdn.net/weixin_35691921/article/details/109720529 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:AS 统一配置工程依赖和版本
下一篇:app:processDevDebugResources

发表评论

最新留言

很好
[***.229.124.182]2024年12月04日 17时49分54秒