当允许备份设置为 false 时清单合并失败

Bar*_*jee 1 android android-manifest

在 android 清单文件中,当我将 android:allowBackup="true" 更改为 android:allowBackup="false" 时,它通过我出现了 maifest murger 失败的错误。

我的清单文件是:

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

    <application
        android:allowBackup="false"
        android:icon="@mipmap/trucks"
        android:label="@string/app_name"
        android:supportsRtl="true"
        tools:replace="android:icon"
        android:theme="@style/AppTheme">    

       <activity
            android:name="com.goturbo.FragmentContainerActivity"
            android:windowSoftInputMode="adjustResize"
            android:screenOrientation="portrait"
            android:theme="@style/AppTheme.NoActionBar">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
 </manifest>
Run Code Online (Sandbox Code Playgroud)

错误:

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs
Run Code Online (Sandbox Code Playgroud)

Saa*_*man 6

使用工具:替换=“android:allowBackup”