Manifest merger failed with multiple errors, see logs问题处理
Posted CodingForAndroid
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Manifest merger failed with multiple errors, see logs问题处理相关的知识,希望对你有一定的参考价值。
在android开发的时候,有时候会遇到这样的问题
Error:Execution failed for task ':test:processDebugManifest'.>
Manifest merger failed with multiple errors, see logs
但是要命的是,除了这个log,没有什么其他的有用信息了,怎么办?
处理方式是这样的:
首先进入命令行,输入命令
gradlew processDebugManifest --stacktrace
其中,processDebugManifest是log里面提到的,这个命令是会了获取更多的log信息。
> Task :woMaiMall:process2024DebugManifest
E:\\womai2\\womai\\woMaiMall\\src\\main\\AndroidManifest.xml:75:9-67 Error:
Attribute permission#$PACKAGE_NAME.permission.PROCESS_PUSH_MSG@name at AndroidManifest.xml:75:9-67 requires a place
holder substitution but no value for <PACKAGE_NAME> is provided.
E:\\womai2\\womai\\woMaiMall\\src\\main\\AndroidManifest.xml:36:5-81 Warning:
Element uses-permission#android.permission.ACCESS_COARSE_LOCATION at AndroidManifest.xml:36:5-81 duplicated with elem
ent declared at AndroidManifest.xml:18:5-81
E:\\womai2\\womai\\woMaiMall\\src\\main\\AndroidManifest.xml:60:5-67 Warning:
Element uses-permission#android.permission.INTERNET at AndroidManifest.xml:60:5-67 duplicated with element declared a
t AndroidManifest.xml:21:5-67
E:\\womai2\\womai\\woMaiMall\\src\\main\\AndroidManifest.xml:62:5-81 Warning:
Element uses-permission#android.permission.WRITE_EXTERNAL_STORAGE at AndroidManifest.xml:62:5-81 duplicated with elem
ent declared at AndroidManifest.xml:11:5-81
E:\\womai2\\womai\\woMaiMall\\src\\main\\AndroidManifest.xml:64:5-78 Warning:
Element uses-permission#android.permission.ACCESS_NETWORK_STATE at AndroidManifest.xml:64:5-78 duplicated with elemen
t declared at AndroidManifest.xml:17:5-79
E:\\womai2\\womai\\woMaiMall\\src\\main\\AndroidManifest.xml:66:5-75 Warning:
Element uses-permission#android.permission.ACCESS_WIFI_STATE at AndroidManifest.xml:66:5-75 duplicated with element d
eclared at AndroidManifest.xml:15:5-76
E:\\womai2\\womai\\woMaiMall\\src\\main\\AndroidManifest.xml:68:5-74 Warning:
Element uses-permission#android.permission.READ_PHONE_STATE at AndroidManifest.xml:68:5-74 duplicated with element de
clared at AndroidManifest.xml:10:5-75
E:\\womai2\\womai\\woMaiMall\\src\\main\\AndroidManifest.xml:1175:9-1178:41 Warning:
Element service#com.baidu.location.f at AndroidManifest.xml:1175:9-1178:41 duplicated with element declared at Androi
dManifest.xml:1109:9-1112:41
E:\\womai2\\womai\\woMaiMall\\src\\main\\AndroidManifest.xml Error:
Validation failed, exiting
See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
FAILURE: Build failed with an exception.
以上是关于Manifest merger failed with multiple errors, see logs问题处理的主要内容,如果未能解决你的问题,请参考以下文章
解决『Manifest merger failed with multiple errors, see 』
AS添加依赖库提示Manifest merger failed解决办法
:app:processDebugMainManifest Manifest merger failed with multiple errors, see logs
Manifest merger failed with multiple errors, see logs问题处理