question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Project does not building when android:allowBackup="false" is set in Manifest

See original GitHub issue

The application can no longer be built when the application has android:allowBackup="false" because the library has android:allowBackup="true" :

Error:Execution failed for task ':app:processFreeDebugManifest'.
> Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:30:9-36
  	is also present at [com.prof.rssparser:rssparser:1.0] AndroidManifest.xml:12:9-35 value=(true).
  	Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:28:5-166:19 to override.

Suggestion: remove the android:allowBackup="true" from the lib manifest.

Additional, maybe also remove android:label="@string/app_name" and android:supportsRtl="true"

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
spipaucommented, Aug 13, 2017

Ah, 1.0 --> 1.1 😃 Thanks, works like a charm!

Sent from my Google Nexus 5X using FastHub

0reactions
prof18commented, Aug 13, 2017

I’ve already updated it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Studio Build Error: manifestMergerXXXX?
When Android builds your apk, it will merge Manifest files from different projects and it will try to merge them all to produce...
Read more >
<application> | Android Developers
This attribute indicates whether or not the package installer extracts native libraries from the APK to the file system. If set to "false"...
Read more >
1.1: Create Your First Android App - GitHub Pages
For each activity you can use Android Studio to do the following, in no particular ... Each project in Android Studio contains the...
Read more >
Overriding allowBackup from higher priority manifest produces ...
One of the libraries that I have included as compile time dependency in app/build.gradle has allowBackup = true in its manifest. If I...
Read more >
Can anyone help me place android:allowBackup=“false” in ...
I've tried to put it here. But it doesn't seem to work. This is in my Android manifest from Plugins/Android/GoogleMobileAdsPlugin/.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found