Android开发Android开发经验谈Android进阶之路

android 中报“ Manifest merger fail

2018-06-05  本文已影响25人  追梦小乐
image.png

Error:Execution failed for task ':jx:yt:app:processDebugManifest'.
Manifest merger failed with multiple errors, see logs

看错误的大概意思是:androidManifest文件有异常。如果看不到更多信息的时候,点击下面的按钮

image.png image.png

这样就可以看到更多的信息,看信息提示:应该是说在多模块的工程中,build.gradle中的配置不一致,打开自己的工程检测配置


image.png
image.png

果然是有一个模块的配置跟全局配置的不一致

ps:在网上查找资料的时候发现,网上最多的一种解决方法,是在androidManifest文件配置,如下图所示(不过我建议,最好使用上面的方法来查找,因为导致错误的原因有很多,不会千遍一律,这个时候我们需要去查看更多的信息):
xmlns:tools="http://schemas.android.com/tools"
image.png
tools:replace="android:icon, android:theme"
image.png

参考文章:
https://blog.csdn.net/geekqian/article/details/59110673

https://www.jianshu.com/p/403fc9745346

上一篇 下一篇

猜你喜欢

热点阅读