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

这种错误是因为第三方库的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都可以看到

相关文章

迭代器模式(Iterator)迭代器模式(Iterator)[Cursor]意图...
高性能IO模型浅析服务器端编程经常需要构造高性能的IO模型,...
策略模式(Strategy)策略模式(Strategy)[Policy]意图:定...
访问者模式(Visitor)访问者模式(Visitor)意图:表示一个...
命令模式(Command)命令模式(Command)[Action/Transactio...
生成器模式(Builder)生成器模式(Builder)意图:将一个对...