flutter_background_geolocation icon indicating copy to clipboard operation
flutter_background_geolocation copied to clipboard

AndroidManifest.xml Conflict

Open 5lineofcode opened this issue 8 years ago • 3 comments

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

1. 2. 3. 4.

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.

5lineofcode avatar Oct 31 '18 11:10 5lineofcode

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

magnatronus avatar Oct 31 '18 11:10 magnatronus

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 >___<

5lineofcode avatar Oct 31 '18 12:10 5lineofcode

Thanks @magnatronus.

christocracy avatar Oct 31 '18 14:10 christocracy