AndroidManifest 合并出错 tools:replace="android:allowBackup"
16lz
2022-06-16
出现的问题: 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 添加sensor 权限
- Android(安卓)Jetpack Compose 之 Text
- android DecorView的使用
- Android怎样添加AT命令
- android实现图片平铺效果&WebView多点触控实现缩放
- 如何添加Android返回键的退出功能
- Android中获取应用程序(包)的信息-----PackageManager的使用(
- Android(安卓)init.rc BOOTCLASSPATH
- 通过AndroidTestCase来进行android 单元测试