【Android】Manifest merger failed with multiple errors, see logs问题处理

问题

Manifest merger failed with multiple errors, see logs

解决方案

1、在AndroidManifest.xml中加入xmlns:tools=”http://schemas.android.com/tools

<manifest package="XXX"
          xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools">

2、在application配置tools:replace或其他报错位置配置

<application  tools:replace="android:allowBackup">

3、多个可使用英文逗号 “ , ” 隔离

4、查看错误方法
首先进入命令行,输入命令

gradlew processDebugManifest --stacktrace

猜你喜欢

转载自blog.csdn.net/sinat_30220049/article/details/81458185