Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android AllowBackup Error

These are my codes after enabling 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">

And when I got the output, I encountered the following problems with the following

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.
like image 392
Amirhf Avatar asked Sep 29 '17 01:09

Amirhf


1 Answers

Please use replace in yout manifest

Declare header like this:

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

Than add to your application tag the following attribute:

<application
    .
    .
    .
    tools:replace="android:allowBackup" />
like image 50
Ashish Avatar answered Oct 24 '22 06:10

Ashish