Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple

来源:互联网 发布:mysql数据库用户名 编辑:程序博客网 时间:2024/05/20 04:11

最近在做安卓项目时,导入开源项目后报出如下错误:Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple errors, see logs



在网上看到说修改如下:

一、在清单文件AndroidManifest.xml中修改两个地方

1.在<manifest> 下添加  xmlns:tools="http://schemas.android.com/tools" 

如图所示:



2.在<application> 下添加tools:replace="android:icon, android:theme"

如图所示:



这是官方给出的解释:

http://tools.android.com/tech-docs/new-build-system/user-guide/manifest-merger


感觉收益颇多,记录一下


0 0
原创粉丝点击