Suggestion: add 'tools:replace="android:label"'
16lz
2022-04-05
Error:Execution failed for task ':xxx:processDebugAndroidTestManifest'.> Manifest merger failed : Attribute application@label value=(@string/app_name) from [debug] AndroidManifest.xml:13:9-50 is also present at [com.xxx:xxx:unspecified] AndroidManifest.xml:15:9-41 value=(@string/app_name). Suggestion: add 'tools:replace="android:label"' to element at manifestMerger5515652802157675786.xml:7:5-9:19 to override.
当多个模块或者 Library
进行依赖的时候,最后 Gradle
的时候所有的 AndroidManifest
会进行合并,若有相同的属性时就会提示上面的错误,如上面的 android:label
属性,建议添加 tools:replace="android:label
,也可以将Module
或者Library
中无用的属性去除,因为Libarary
最终合并会以release
版本,没有debug
版本
更多相关文章
- 设置android默认属性
- Android打开微信小程序
- API 25 (Android(安卓)7.1.1 API) view.View——属性分析
- android 软键盘回车键捕获
- AndroidManifest.xml文件详解(uses-configuration)
- RelativeLayout常用属性介绍
- Android的Spinner组件的XML属性(备查)
- Android——CheckBox【复选框】 点击事件与属性,用案例说明
- android Studio 低版本升级gradle3.0以上版本