android studio Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple errors, see logs

android studio Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple errors, see logs_第1张图片

在集成阿里百川过程中,依赖远程aar,相比jar还包含资源文件,Manifest合并失败,引发错误:

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

大致原因:

1.引用的aar库与自己的项目minSdkVersion不一致;

2.android:icon, android:theme等属性与自己的项目配置文件AndroidManifest中不一致。如aar库中没有,也会默认生成的Android:icon和android:theme等,如下图 框图2:

android studio Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple errors, see logs_第2张图片

解决方法:

根据百川demo相应更改一致配置,如图:


android studio Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple errors, see logs_第3张图片


android studio Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple errors, see logs_第4张图片

事情还没完,引发另一个编译错误提示:


android studio Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple errors, see logs_第5张图片

以上两种(各有各报,不太一样),但大概是说Android方法数量65536限制:

之前解决过65536问题,网上也有比较多,不在记录。

这个讲得比较详细:http://blog.csdn.net/shuxiangxingkong/article/details/51332221


小tips:有时新引包,改配置效果未佳,是否忘记 clean?


android studio Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple errors, see logs_第6张图片

你可能感兴趣的:(android studio Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple errors, see logs)