Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : Attribute se
来源:互联网 发布:ktv盈利数据 编辑:程序博客网 时间:2024/06/01 09:02
最近在项目中遇到了这样的错误:
此异常的由来:我在集成融云的时候出现的这种错误,也就是在添加库的时候出现的。
原因:AS的Gradle插件默认会启用Manifest Merger Tool,若Library项目中也定义了与主项目相同的属性(例如默认生成的android:icon和android:theme),则此时会合并失败,并报上面的错误。
就是说自己工程中Manifest的某个属性和Library中的Mainfest的某个属性一样,在清单文件合并的时候出现的问题。
解决:第一种方法:根据报错信息找到所冲突的地方,将自己工程中的那个属性注销掉(我自己用的是这样方法)
第二种方法:在在工程的Manifest.xml的application标签下添加tools:replace="android:icon, android:theme"(多个属性用,隔开,并且记住在manifest根标签上加入xmlns:tools="http://schemas.android.com/tools",否则会找不到namespace哦,也可以按到Alt + Enter键快捷添加)------>这是别人的解决办法(注意这对应的不是上面的问题,但是原理都一样)
1 0
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : Attribute se
- Manifest merger failed : Error:Execution failed for task ':app:processDebugManifest'.
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : Attribute ap
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : Attribute ap
- Error:Execution failed for task ':protectParentClient2:processDebugManifest'. > Manifest merger fail
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple
- 终极报错解决方案:Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple
- 导SDK报错:Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with mu
- 编译报错Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with mul
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple
- Mining and summarizing customer reviews论文总结
- 2017-2-17get
- 4.Android项目之文件结构
- 无卡支付时代 银行信用卡联手京东金融欲打翻身仗
- [BZOJ2299][向量]解题记录
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : Attribute se
- Django环境搭建
- hibernate配置详情4(TestUtil.java)
- 机器学习实践系列之11 - OpenCV实战车道线检测
- 给自己的忠告
- Solr 全文搜索服务
- 进度条的模拟实现
- 股票 python tick
- Lucene介绍