当前位置:首页 > 移动开发 > 正文

Attribute [email protected] value=(true) from AndroidManifes

2024-03-31 移动开发

 

 

 

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

 



温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/yidong/19167.html