Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
android:allowBackup=";“真的”;“上的错误”;“真的”;_Android_Android Manifest - Fatal编程技术网

android:allowBackup=";“真的”;“上的错误”;“真的”;

android:allowBackup=";“真的”;“上的错误”;“真的”;,android,android-manifest,Android,Android Manifest,我有一个问题,我的代码在“true”上出现了错误 我使用了计算距离项目,但有很多项目,当我创建一个项目时,在清单文件中生成错误 <application android:allowBackup="true"> 请告诉我答案这是因为在您的一些库中,至少有一个使用了allowBackup并显式设置为false。您可以使用清单中的工具:replace <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:a

我有一个问题,我的代码在“true”上出现了错误


我使用了计算距离项目,但有很多项目,当我创建一个项目时,在清单文件中生成错误

<application android:allowBackup="true">


请告诉我答案

这是因为在您的一些库中,至少有一个使用了
allowBackup
并显式设置为false。您可以使用清单中的
工具:replace

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.dsadas.bottombardmo"
    xmlns:tools="http://schemas.android.com/tools">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        tools:replace="allowBackup">
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>

这是因为在某些库中,至少有一个库使用了
allowBackup
并显式设置为false。您可以使用清单中的
工具:replace

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.dsadas.bottombardmo"
    xmlns:tools="http://schemas.android.com/tools">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        tools:replace="allowBackup">
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>


您正在使用任何库吗?您正在使用任何库吗?