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

Build failed after pub get map_launcher plugin #62

Closed
edgarjc opened this issue Feb 18, 2021 · 6 comments
Closed

Build failed after pub get map_launcher plugin #62

edgarjc opened this issue Feb 18, 2021 · 6 comments

Comments

@edgarjc
Copy link

edgarjc commented Feb 18, 2021

I copied map_launcher: ^1.1.3 into my pubsec.yaml, clicked pub get and my application (IOS and Android) throws errors. If I revert changes before I used map_launcher: ^1.1.3 my application works again. Has anyone had this issue before?

Android error

/Users/edgar/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-1.1.3/android/src/main/AndroidManifest.xml:5:9-64 Error:
	Missing 'package' key attribute on element package at AndroidManifest.xml:5:9-64
/Users/edgar/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-1.1.3/android/src/main/AndroidManifest.xml:6:9-68 Error:
	Missing 'package' key attribute on element package at AndroidManifest.xml:6:9-68
/Users/edgar/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-1.1.3/android/src/main/AndroidManifest.xml:7:9-56 Error:
	Missing 'package' key attribute on element package at AndroidManifest.xml:7:9-56
/Users/edgar/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-1.1.3/android/src/main/AndroidManifest.xml:8:9-54 Error:
	Missing 'package' key attribute on element package at AndroidManifest.xml:8:9-54
/Users/edgar/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-1.1.3/android/src/main/AndroidManifest.xml:9:9-44 Error:
	Missing 'package' key attribute on element package at AndroidManifest.xml:9:9-44
/Users/edgar/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-1.1.3/android/src/main/AndroidManifest.xml:10:9-56 Error:
	Missing 'package' key attribute on element package at AndroidManifest.xml:10:9-56
/Users/edgar/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-1.1.3/android/src/main/AndroidManifest.xml:11:9-56 Error:
	Missing 'package' key attribute on element package at AndroidManifest.xml:11:9-56
/Users/edgar/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-1.1.3/android/src/main/AndroidManifest.xml:12:9-62 Error:
	Missing 'package' key attribute on element package at AndroidManifest.xml:12:9-62
/Users/edgar/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-1.1.3/android/src/main/AndroidManifest.xml:13:9-59 Error:
	Missing 'package' key attribute on element package at AndroidManifest.xml:13:9-59
/Users/edgar/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-1.1.3/android/src/main/AndroidManifest.xml:14:9-46 Error:
	Missing 'package' key attribute on element package at AndroidManifest.xml:14:9-46
/Users/edgar/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-1.1.3/android/src/main/AndroidManifest.xml:15:9-57 Error:
	Missing 'package' key attribute on element package at AndroidManifest.xml:15:9-57
/Users/edgar/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-1.1.3/android/src/main/AndroidManifest.xml:16:9-51 Error:
	Missing 'package' key attribute on element package at AndroidManifest.xml:16:9-51
/Users/edgar/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/map_launcher-1.1.3/android/src/main/AndroidManifest.xml Error:
	Validation failed, exiting

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':map_launcher:processDebugManifest'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Manifest merger failed with multiple errors, see logs

IOS Error
I have attached a file because its a long error but these are the first few lines.

 /Users/edgar/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/location-3.2.1/ios/Classes/LocationPlugin.m:86:43: warning: 'allowsBackgroundLocationUpdates' is only available on iOS 9.0 or newer [-Wunguarded-availability]
                result(self.clLocationManager.allowsBackgroundLocationUpdates ? @1 : @0);

IOS error.txt

@allanwolski
Copy link

allanwolski commented Feb 18, 2021

It worked after upgrading my gradle version from 3.5.0 to 3.5.4
#60 (comment)

@edgarjc edgarjc closed this as completed Feb 18, 2021
@edgarjc
Copy link
Author

edgarjc commented Feb 18, 2021

It worked after upgrading my gradle version from 3.5.0 to 3.5.4
#60 (comment)

This worked for the android version. Upgraded from 3.5.0 to 3.5.4 but still having issues with the IOS application.

@edgarjc edgarjc reopened this Feb 18, 2021
@edgarjc
Copy link
Author

edgarjc commented Feb 19, 2021

The issue is that flutter created an old ios project that's based on obj-c rather than swift. You could try in xcode add a new obc-c file and xcode will ask to create bridging header, click yes and this will solve the issue.

Solution: #49

@edgarjc edgarjc closed this as completed Feb 19, 2021
@mattermoran
Copy link
Owner

Ha I just finished texting but you already found a solution :)
Glad it worked out

@woelmer
Copy link

woelmer commented Mar 5, 2021

Changing the gradle version to 3.5.4 solves this problem but creates another one. I also include google_maps plugin, and that fails on certain Android devices when you upgrade to 3.5.4.

I already have a bridging header in my Xcode project and this is still causing a problem. @edgarjc

@pablomunoz83nqn
Copy link

It worked after upgrading my gradle version from 3.5.0 to 3.5.4
#60 (comment)

This Work for me, Edited classpath 'com.android.tools.build:gradle:3.5.4'

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

5 participants