AndroidManifest 合并出错 tools:replace="android:allowBackup"
16lz
2021-01-23
出现的问题: Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:116:9-36
is also present at [manager:common:unspecified:release] AndroidManifest.xml:12:9-35 value=(true).
is also present at [manager:common:unspecified:release] AndroidManifest.xml:12:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to element at AndroidManifest.xml:114:5-1136:19 to override.
解决方法:
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="包名">
在application节点添加
tools:replace="android:allowBackup" ......
同样的还有
tools:replace="android:icon, android:theme,android:allowBackup"
更多相关文章
- android 从Activity 获取 rootView 根节点
- Android之USB Camera摄像头节点后移
- Android清单文件详解(六) ---- 节点的属性
- Android 上层应用读写底层设备节点(Android M)
- Android 框架之创建设备节点文件
- Android TimeLine 时间节点轴的实现
- android selector 的不能是空节点
- Android 进阶——Android Studio 项目结构详细述及Gradle脚本语
- Android 节点进度条