Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple

对与这个问题也是很头疼 就目前网上看到的方法和自己的总结来看

1.在清单文件中解决问题
manifest 下加入 xmlns:tools=”http://schemas.android.com/tools”

Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple

然后在 application 根标签下 用 tools:replace=”android:icon,android:theme”这个方法
replace里边得属性根据自己得需要去填写 中间已逗号分割

Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple

2.检查引入的第三方包有没有重复 或者版本设置不一致 去除多余的 改为一致

Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple

3. 那就直达病灶了

Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple

到项目这个目录里边去寻找重复的资源 进入根目录删掉重新编译

最后的最后 还有一波操作

Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple

这是我接入融云的时候添加上去的 按照官方文档的要求做了修改 但是依然报同样地 错误 很是头疼
如果说 用不到拍照的功能的话 就把这段代码注释掉
最好的方法就是自己重写一个 IMProvide 去替代原来的android.support.v4.content.FileProvider
在次运行编译 就OK了

以上这些方法或许有用 或许没用 仅作为一个参考