admin管理员组

文章数量:1586179

当我们项目需要加入一个或多个Module作为library时,会报如下异常:

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

这说明在合并所有的Manfest文件时冲突了,几率最大的两个原因是

1.build.gradle中设置的compileSdkVersion buildToolsVersion minSdkVersion targetSdkVersion不统一,需要按宿主项目的配置进行统一。

2.几个项目的AndroidManifest文件中设置了多个android:allowBackup    android:icon   android:label  android:theme 属性,这里需要在宿主项目的Manfest文件中添加两句话

manifest 节点下加入
xmlns:tools="http://schemas.android/tools"
application节点下加入
tools:replace="android:allowBackup,icon,theme,label"
不能写成tools:replace="android:allowBackup,android:icon,android:theme"   虽然不报错,但是不起作用。


本文标签: 报错ExecutionErrorAndroistudiofailed