Execution failed for task ':app:processDebugManifest'
使用Android Studio导入工程,Android-Xlistview-library第三方包遇到的问题
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest.xml:7:9-43
is also present at [MyApplication:android-XListView-library:unspecified] AndroidManifest.xml:13:9-45 value=(@drawable/ic_launcher).
Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:5:5-18:19 to override.
原因:
AS的Gradle插件默认会启用Manifest Merger Tool,若Library项目中也定义了与主项目相同的属性(例如默认生成的android:icon和android:theme),则此时会合并失败,并报上面的错误。
解决办法
方法1:在在工程的Manifest.xml的application标签下添加tools:replace="android:icon, android:theme"(多个属性用,隔开,并且记住在manifest根标签上加入xmlns:tools="http://schemas.android.com/tools",否则会找不到namespace哦,也可以按到Alt + Enter键快捷添加)
方法2:在build.gradle根标签上加上useOldManifestMerger true (懒人方法)
Execution failed for task ':app:processDebugManifest'相关推荐
- 异常问题解决Error:Execution failed for task ‘:app:processDebugManifest‘
异常问题解决Error:Execution failed for task ':app:processDebugManifest' 参考文章: (1)异常问题解决Error:Execution fai ...
- Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed with multipl
使用Android studio build时出现的: Android studio(以下简称AS)项目中引用自己的Library编译时出现的一些问题 Message Gradle build Err ...
- Execution failed for task ':app:processDebugManifest'.
使用新版的Android Studio导入以前的项目,会出现Execution failed for task ':app:processDebugManifest'. 的错误 * What went ...
- As Error:Execution failed for task ':app:processDebugManifest'.
Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multip ...
- org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:processDebugManifest'
一.问题描述:在尝试将另一个android project下的module导入当前的android project下后,总是无法运行起来,一直报以下错误,大致意思就是告诉你:"Manifes ...
- android 遇到Error:Execution failed for task ':app:processDebugManifest'. 解决
今天遇到这个问题: Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed w ...
- Android Execution failed for task ‘:app:process_DebugManifest‘.
原生或flutter运行爆错:编译过程中发现清单文件中出现报错,提示查看日志 Error:Execution failed for task ':app:processDebugManifest'.& ...
- 完美解决Error:Execution failed for task ':APP:transformClassesWithDexForDebug'...问题
今天下载一个demo运行出现问题,错误如下图 我的问题是JDK 1.8 版本问题问题,我吧1.8改成1.7运行成功 这个实在app下面的build.gradle 相信大伙在Android开发过程中都避 ...
- 安卓中运行报错Error:Execution failed for task ':app:transformClassesWithDexForDebug'解决
在androidstuio中运行我的未完项目,报错: Error:Execution failed for task ':app:transformClassesWithDexForDebug'. & ...
最新文章
- 算法-------二分法查找
- latex公式对齐_论文中的公式如何对齐
- java心得---java语言基础
- IdentityHashMap
- C/C++ unsigned char*类型
- JavaScript 专题之如何判断两个对象相等
- 我ABAP开发生涯中搜集的一些有意思的数据库表
- 完整国内城市js级联选择
- Thinking in Java方法签名
- 鸿蒙系统适配开发,捕获科技拟建立鸿蒙开发组 为区块链钱包客户适配鸿蒙系统做筹备...
- 数据结构之树:树的介绍——9
- Android 数据库 SQLite
- LeetCode 73. 矩阵置零(两个标记变量)
- Spring源码之创建AOP代理
- 教你轻松又简单的绘制地铁线路图
- 正确区分LJMP、AJMP、SJMP、JMP跳转指令
- 智能陈桥输入法软件测试,智能陈桥五笔输入法
- 金融企业如何构建有效的数据分析体系?1000+案例经验汇总
- C# 读取outlook 本地签名
- nuxt 目录结构及配置文件详解