Android 允许备份错误

Android AllowBackup Error

这些是我启用 allowBackup 后的代码

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

而当我得到输出时,我遇到了以下问题

Error:Execution failed for task ':app:processReleaseManifest'.
> Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:20:9-36
    is also present at [me.itangqi.waveloadingview:library:0.3.5] AndroidManifest.xml:12:9-35 value=(true).
    Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:18:5-55:19 to override.

请在您的清单中使用替换

像这样声明header:

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

然后将以下属性添加到您的应用程序标记中:

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