Error:Execution failed for task ':bearBabyClient:processDebugManifest'. > Manifest merger failed with multiple errors, see logs

时间:2022-05-09 15:39:33

Error:Execution failed for task ':bearBabyClient:processDebugManifest'. > Manifest merger failed with multiple errors, see logs

具体报错如上:

在右侧中 大方块圈中的[com.android.support:support-v4:26.0.0-alpha1] 这个文件导致的,在这的清单文件第27行合并失败,让使用tools:replace="android:value

提示:Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:25:5-27:34 to override.

解决:

1.

全局搜索26.0.0得到以下并打开圈住的v4包下的请文件

Error:Execution failed for task ':bearBabyClient:processDebugManifest'. > Manifest merger failed with multiple errors, see logs

2.打开v4的清单文件并抄出来v4清单文件的

<uses-sdk  tools:overrideLibrary="android.support.v4" />

<!--meta-data就是刚才保存指出来的27行-->

<meta-data 

android:name="android.support.VERSION"
android:value="26.0.0-alpha1" />
3.
然后再自己清单文件中加入并在 meta-data元素中加入tools:replace="android:value"

 我就是这么解决的希望能帮到有同样问题的朋友!

 

 以下是一位朋友提供的一些帮助,与聊天记录

 2017/5/16 10:49:21

就是我 2017/5/16 10:49:21

其他module库的  gradle文件和 AndroidManifest 文件自己再看下

就是我 2017/5/16 10:50:07

报错是说 design包版本号  v4包版本号  一个是 25.3.1  一个是26.0.0

就是我 2017/5/16 10:50:39

至少找到哪里是25.3.1  哪里是26.0.0  在做处理

烟花易冷心易碎 2017/5/16 10:51:02

但是真没发现有这个

烟花易冷心易碎 2017/5/16 10:51:05

Error:Execution failed for task ':bearBabyClient:processDebugManifest'. > Manifest merger failed with multiple errors, see logs

烟花易冷心易碎 2017/5/16 10:51:13

这是一个module的
2017/5/16 10:51:22
烟花易冷心易碎 2017/5/16 10:51:22

另一个的 Error:Execution failed for task ':bearBabyClient:processDebugManifest'. > Manifest merger failed with multiple errors, see logs

烟花易冷心易碎 2017/5/16 10:51:46

Error:Execution failed for task ':bearBabyClient:processDebugManifest'. > Manifest merger failed with multiple errors, see logs最后一个
2017/5/16 10:55:32
就是我 2017/5/16 10:55:32

那我也搞不懂了 

就是我 2017/5/16 10:55:42

你看看你什么时候出现这个问题
2017/5/16 10:55:54
就是我 2017/5/16 10:55:54

先清下缓存

烟花易冷心易碎 2017/5/16 10:55:57

但是我搜索26.0.0搜索出来一个这个

烟花易冷心易碎 2017/5/16 10:56:10
Error:Execution failed for task ':bearBabyClient:processDebugManifest'. > Manifest merger failed with multiple errors, see logs

 


Error:Execution failed for task ':bearBabyClient:processDebugManifest'. > Manifest merger failed with multiple errors, see logs

烟花易冷心易碎 2017/5/16 10:56:22

清理过缓存但是没效果

烟花易冷心易碎 2017/5/16 10:56:30

Error:Execution failed for task ':bearBabyClient:processDebugManifest'. > Manifest merger failed with multiple errors, see logs

就是我 2017/5/16 10:56:36

应该就是这里了吧

烟花易冷心易碎 2017/5/16 10:57:12

有可能是,但是这个属于build的,改完没效果

就是我 2017/5/16 10:57:24

build不行

就是我 2017/5/16 10:57:35

你得找到 源文件  改才行

烟花易冷心易碎 2017/5/16 10:57:38

我等下看看是不是依赖的那个里面的

烟花易冷心易碎 2017/5/16 10:57:40

是啊

就是我 2017/5/16 10:57:45

build出来的改不了的
2017/5/16 11:01:30
烟花易冷心易碎 2017/5/16 11:01:30

好了,谢谢提供信息

烟花易冷心易碎 2017/5/16 11:01:39

我是这么改的

烟花易冷心易碎 2017/5/16 11:02:17

他不是报错27行 Error:Execution failed for task ':bearBabyClient:processDebugManifest'. > Manifest merger failed with multiple errors, see logs这里错误么
2017/5/16 11:03:09
烟花易冷心易碎 2017/5/16 11:03:09

于是我就把这个抄到了我的manifest中,并添加报错提示的 Error:Execution failed for task ':bearBabyClient:processDebugManifest'. > Manifest merger failed with multiple errors, see logs
Error:Execution failed for task ':bearBabyClient:processDebugManifest'. > Manifest merger failed with multiple errors, see logs

 


 



就是我 2017/5/16 11:04:52

早该这么试了
2017/5/16 11:06:55
烟花易冷心易碎 2017/5/16 11:06:55

前一段时间也replace,但是在我清单文件27行写了不行,不清楚哪里清单文件合并失败,今天你给提供了信息,我根据大概想了下,这么一搞就好了.

烟花易冷心易碎 2017/5/16 11:07:17

非常感谢,今天这个信息非常具有突破性价值 Error:Execution failed for task ':bearBabyClient:processDebugManifest'. > Manifest merger failed with multiple errors, see logs

就是我 2017/5/16 11:07:36

我没有提供信息  

就是我 2017/5/16 11:08:02

照着系统给的 翻译下  然后 到处瞎改  总会改好的
2017/5/16 11:08:37
烟花易冷心易碎 2017/5/16 11:08:37

Error:Execution failed for task ':bearBabyClient:processDebugManifest'. > Manifest merger failed with multiple errors, see logs我觉得你这几句话绝对是关键 Error:Execution failed for task ':bearBabyClient:processDebugManifest'. > Manifest merger failed with multiple errors, see logs