使用Android Studio时报错 Manifest merger failed...Suggestion: add 'tools:replace="android:label"'
来源:互联网 发布:java web网站开发 编辑:程序博客网 时间:2024/06/06 00:21
使用Android Studio时报错 Manifest merger failed : Attribute application@label value=(@string/idcards_name) from AndroidManifest.xml:16:9-45
is also present at [:liboffline_face_verification-release:] AndroidManifest.xml:16:9-41 value=(@string/app_name).
Suggestion: add 'tools:replace="android:label"' to *
如:
What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@label value=(@string/idd_name) from AndroidManifest.xml:16:9-45
is also present at [:libxxn-release:] AndroidManifest.xml:16:9-41 value=(@string/app_name).
Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:13:5-29:19 to override.
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.
BUILD FAILED
解决办法:
1、在manifest 标签中加入xmlns:tools="http://schemas.android.com/tools",如
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
2、在application标签中加入:tools:replace="android:label"
<application
android:allowBackup="true"
android:icon="@drawable/idcard_icon"
android:label="@string/idcards_name"
android:theme="@style/AppTheme"
tools:replace="android:label">
- 使用Android Studio时报错 Manifest merger failed...Suggestion: add 'tools:replace="android:label"'
- Manifest merger failed Suggestion: add 'tools:replace=“Android:value”' to <meta-data> element at And
- Suggestion: add 'tools:replace="android:label"'
- Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:28:5
- Suggestion: add 'tools:replace="android:icon"' to element
- 使用android studio 出现Manifest merger failed with multiple errors
- Suggestion: add 'tools:replace="android:value"' to <meta-data> element 报错解决方案
- 【Android Studio】Manifest Merger
- Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml
- Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml
- Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml
- Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml
- Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xm
- Android Studio添加依赖时出现“Manifest merger failed”
- Android Studio "Manifest merger failed with multiple errors, see logs"
- Android Studio Manifest merger failed with multiple errors, see logs
- Android Studio编译项目的时候报Manifest merger failed
- Android Studio编译项目的时候报Manifest merger failed
- 理解 IntelliJ IDEA 的项目配置和Web部署
- 试水VISA编程(1)——对仪器的基本的控制
- super|this
- Python 管理系统程序
- SpringMVC RequestContextListener配置问题
- 使用Android Studio时报错 Manifest merger failed...Suggestion: add 'tools:replace="android:label"'
- 如何简单的实现springmvc进行调用
- android自定义控件显示小红点
- 判断网络是否可用
- PAT乙级1026. 程序运行时间(15)
- [译]Python的enumerate()函数揭秘
- 3
- [历史最值线段树] UOJ#164. 【清华集训2015】V
- AttributeError: ‘module’ object has no attribute’xxx 问题解决