ERROR: Manifest merger failed with multiple errors, see logs

在新建的Android项目中遇到了Manifest合并错误,通过查看logs发现是依赖库版本不兼容导致的问题。通过将androidx.appcompat:appcompat和androidx.test相关库的版本降低,如将appcompat从1.4.1降至1.0.2,测试库版本从1.4.0和3.4.0分别降至1.1.1和3.1.1,成功解决了同步错误。
摘要由CSDN通过智能技术生成

ERROR: Manifest merger failed with multiple errors, see logs

新建一个Android项目build的时候出现ERROR: Manifest merger failed with multiple errors, see logs,打开build.gradle,找到dependencies,如下

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.4.1'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.4.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}

降低版本

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.0.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:runner:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
}

sync now,大功告成

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值