Manifest merger failed with multiple errors, see logs

Manifest merger failed with multiple errors, see logs

 

xmlns:tools="http://schemas.android.com/tools"
application中tools:replace="android:icon,android:theme,android:label"

我本人是其中一种情况,权限导入重复导致

删除重复<uses-permission android:name="xxxx" />

删除后又报错

 Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.0-alpha1] AndroidManifest.xml:22:18-86
    is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory).
    Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:41:5-105:19 to override.
这次是androidx.core.app.CoreComponentFactory与android.support.v4.app.CoreComponentFactory重复,

删除

implementation 'com.android.support:appcompat-v7:xx.xx.xx'

并将所有使用CoreComponentFactory转为同一个androidx.core.app.CoreComponentFactory即可

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值