Skip to content

android:allowBackup=true is back in Release 3.0.0 #138

@oorlov

Description

@oorlov

Describe the bug
Release 3.0.0 added android:allowBackup=true back to the AndroidManifest.xml
Because of this app developers have to use tools:replace="android:allowBackup" as a workaround.
In general libraries are not supposed to declare this specific flag (unless there is some special use for it? Maybe?)

To reproduce

  • Create an Android app with Android Studio default layout
  • Add allowBackup=false into application within AndroidManifest.xml
  • Add implementation 'com.launchdarkly:launchdarkly-android-client-sdk:3.1.0' to the app/build.gradle
  • Get a build error:
Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:29:9-36
	is also present at [com.launchdarkly:launchdarkly-android-client-sdk:3.1.0] AndroidManifest.xml:13:9-35 value=(true).
	Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:21:5-103:19 to override.

Expected behavior
Adding implementation 'com.launchdarkly:launchdarkly-android-client-sdk:3.1.0' shouldn't cause build error due to allowBackup conflict

Language version, developer tools
AndroidStudio 4.1.3

OS/platform
OS X, but should be any

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions