Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple
来源:互联网 发布:人工智能行业协会 编辑:程序博客网 时间:2024/05/30 07:14
造成该问题的原因是:
AS的Gradle插件默认会启用Manifest Merger Tool,若Library项目中也定义了与主项目相同的属性(例如默认生成的Android:icon和android:theme),则此时会合并失败,并报上面的错误。
可以用以下两种方法解决问题
方法1:
在你library的manifest.xml文件中
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" //a.加入这一行 package="yourpackage">
方法2:在build.gradle根标签上加上useOldManifestMerger true (懒人方法)<application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme" tools:replace="android:icon,android:theme"> // b.加入这一行
0 0
- 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
- 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
- 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
- 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
- 使用Myeclipse10创建Maven项目有如下几种方式:
- 原生Ajax书写
- servlet之cookied/session深入浅出(上)
- CSDN之添加不同颜色的友情链接
- 回溯算法求解数独
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple
- SQL Server几个常用date函数
- iOS 和 iWatch之间的通讯方式
- xgboost原理
- React-native学习过程 七 flexbox伸缩项目属性
- Weblogic: Managed Server: java.lang.OutOfMemoryError: PermGen space
- 个人:lenovo-BIOS配置
- 计量经济学 学习笔记-1 一元线性回归
- RobotFramework unix 系统测试