配置在线加载依赖库(dependences),gradle同步出现manifest合并失败:Manifest merger failed with multiple errors, see logs

来源:互联网 发布:淘宝上的万斯是真的吗 编辑:程序博客网 时间:2024/05/18 17:59

这种错误是因为第三方库的manifest和本工程中manifest合并时出现冲突

打开gradle console,会有详细错误原因,比如:

/Users/zhouyi/work/zhiniao/20161201_V3.4.6/AndroidManifest.xml:110:9-36 Error:
Attribute application@allowBackup value=(false) from AndroidManifest.xml:110:9-36
is also present at [com.tencent.tinker:tinker-server-android:0.3.2] AndroidManifest.xml:11:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:108:5-787:19 to override.

就是第三方库manifest中allowBackup值为true,本工程中为false,改成一致即可


其他配置,比如第三方库中最小sdk版本为10,本地最小sdk版本为9,也会出现冲突,gradle console都可以看到

0 1