您的位置:首页 > 博客中心 > APP开发 >

Attribute application@allowBackup value=(true) from AndroidManifest.xml:7:9-35

时间:2022-03-12 21:18

 

 

技术图片

 

1:

在 AndroidManifest.xml 配置文件中显式配置 android:allowBackup=false。

项目中代码 allowBackup="true" 改为 allowBackup=false

 <application
        android:name=".application.SmartApplication"
        android:allowBackup="false"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">

 

2:

在application节点添加

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

 

在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">

 



相关推荐

电脑软件

本类排行

今日推荐

热门手游