Manifest merger failed with mult
2018-12-21 本文已影响0人
一劍
查看具体报错原因方式
参考文档:
https://www.cnblogs.com/bluestorm/p/6692789.html
https://blog.csdn.net/dengweijunkedafu/article/details/80541104
方式一:
as里的gradle--app--other--processDebugManifest,双击运行,会输出具体的log信息查看,根据具体错误进行修改


方式二:
首先进入命令行,输入命令
gradlew processDebugManifest --stacktrace
其中,processDebugManifest是log里面提到的,这个命令是会了获取更多的log信息。

另外,常见的合并错误有:
引入的三方包存在相同的label icon 等名字
解决:清单文件用tools
manifest头声明tools作用域:
xmlns:tools="http://schemas.android.com/tools"
然后在application中用tools替代报错的节点,如:
解决办法是 到你的「processDebugManifest」module的Mainifest里面加入这样的语句:
<application
android:allowBackup="true"
android:label="@string/app_name"
tools:replace="label,allowBackup">
意思是如果merge manifest,就用别处的allowBackup和label值替换这里的。


sdk版本冲突
一种是修改targetSdkVersion 为一致或者不冲突
