Attribute application@allowBackup value=(true) from AndroidManifest.xml 报错

来源:互联网 发布:怎么设置ad网络的大小 编辑:程序博客网 时间:2024/06/05 15:50

说明:

在集成别的@aar包时候,出现错误:

Attribute application@allowBackup value=(true) from AndroidManifest.xml:47:9-35
    is also present at [com.aliyun.ams:alicloud-android-feedback:3.1.0] AndroidManifest.xml:19:18-45 value=(false).
    Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:45:5-254:19 to override.

解决方法:

1、在AndroidManifest.xml中加入xmlns:tools="http://schemas.android.com/tools

<manifest package="XXX"          xmlns:android="http://schemas.android.com/apk/res/android"          xmlns:tools="http://schemas.android.com/tools">

2、在application

<application        tools:replace="android:allowBackup">

如果有多个的话

<application        tools:replace="android:icon,android:allowBackup">



阅读全文
0 0
原创粉丝点击