Skip to content

Build failed requiring to override android:allowBackup and android:label on android device #2

@yaloumi

Description

@yaloumi

Current Behavior:

An error is displayed when building a new sample flutter app on android device with the package installed.

/sample/android/app/src/debug/AndroidManifest.xml:16:9-36 Error:
	Attribute application@allowBackup value=(false) from [com.github.Tap-Payments:Card-Android:0.0.49] AndroidManifest.xml:16:9-36
	is also present at [com.hbb20:ccp:2.2.2] AndroidManifest.xml:12:9-35 value=(true).
	Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:2:5-32:19 to override.
/sample/android/app/src/debug/AndroidManifest.xml Error:
	Attribute application@label value=(sample) from (unknown)
	is also present at [com.hbb20:ccp:2.2.2] AndroidManifest.xml:13:9-41 value=(@string/app_name).
	Suggestion: add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:2:5-32:19 to override.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Manifest merger failed with multiple errors, see logs

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 13s
Running Gradle task 'assembleDebug'...                             13.9s
Exception: Gradle task assembleDebug failed with exit code 1

Steps To Reproduce:

  1. Run flutter create sample
  2. In the pubspec.yaml add the card_flutter: ^1.0.3 dependency.
  3. Run flutter pub get to install dependencies.
  4. Run flutter run

Environment:

  • OS: MacOS 11.3
  • Dart 3.1.5
  • Flutter 3.13.9
  • Android 12

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