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
版权声明:本文标题:AndroiStudio Error:Execution failed for task ':app:process_360DebugManifest 报错 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/xitong/1727974964a1140560.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论