Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AndroidManifest.xml Conflict #14

Closed
5lineofcode opened this issue Oct 31, 2018 · 3 comments
Closed

AndroidManifest.xml Conflict #14

5lineofcode opened this issue Oct 31, 2018 · 3 comments

Comments

@5lineofcode
Copy link

Your Environment

  • Plugin version: 0.1.7

  • Platform: Android

  • OS version: Windows 10

  • Device manufacturer / model: Nexus_6P_API_26

  • Flutter info (flutter doctor):
    [√] Flutter (Channel beta, v0.9.4, on Microsoft Windows [Version 10.0.16299.726], locale en-ID)
    [√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    [√] Android Studio (version 3.2)
    X Flutter plugin not installed; this adds Flutter specific functionality.
    X Dart plugin not installed; this adds Dart specific functionality.
    [√] VS Code (version 1.28.2)
    [√] Connected devices (1 available)

  • Plugin config

Expected Behavior

I Want the appName is equal to my AndroidManifest.xml setup

Actual Behavior

I got an error, like this
ss

Steps to Reproduce

Context

Debug logs

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processDebugManifest'.

Manifest merger failed : Attribute application@label value=(MonitoringApp) from AndroidManifest.xml:20:9-38
is also present at [:flutter_background_geolocation] AndroidManifest.xml:7:18-50 value=(@string/app_name).
Suggestion: add 'tools:replace="android:label"' to element at AndroidManifest.xml:18:5-41:19 to override.

@magnatronus
Copy link

I had this issue, which appears to be a Flutter one.

Flutter seems to have a problem with 3rd-party Android libraries which merge their own AndroidManifest.xml into the application, particularly the android:label attribute.

The solution is documented here , which worked for me.

https://github.com/transistorsoft/flutter_background_geolocation/blob/master/docs/INSTALL-ANDROID.md

@5lineofcode
Copy link
Author

I had this issue, which appears to be a Flutter one.

Flutter seems to have a problem with 3rd-party Android libraries which merge their own AndroidManifest.xml into the application, particularly the android:label attribute.

The solution is documented here , which worked for me.

https://github.com/transistorsoft/flutter_background_geolocation/blob/master/docs/INSTALL-ANDROID.md

huaaa thxx, fixed hehehe >___<

@christocracy
Copy link
Member

Thanks @magnatronus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants