Closed kimmanwky closed 2 years ago
me too
/Users/nambuivu/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/nambuivu/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/nambuivu/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/nambuivu/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/nambuivu/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/nambuivu/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/nambuivu/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/nambuivu/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/nambuivu/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/nambuivu/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/nambuivu/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/nambuivu/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/nambuivu/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
[✓] Flutter (Channel stable, 1.22.5, on macOS 11.1 20C69 darwin-x64, locale en)
• Flutter version 1.22.5 at /Users/nambuivu/flutter
• Framework revision 7891006299 (8 weeks ago), 2020-12-10 11:54:40 -0800
• Engine revision ae90085a84
• Dart version 2.10.4
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/nambuivu/Library/Android/sdk
• Platform android-30, build-tools 29.0.3
• ANDROID_HOME = /Users/nambuivu/Library/Android/sdk
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.3, Build version 12C33
• CocoaPods version 1.10.0
[✓] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin installed
• Dart plugin version 201.9317
• Java version OpenJDK Runtime Environment (build
1.8.0_242-release-1644-b3-6915495)
[!] VS Code (version 1.52.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
✗ Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (1 available)
• Live (mobile) • AHB00098571 • android-arm64 • Android 10 (API 29)```
Oh crap looks like fix for android 11 also requires gradle version adjustments in flutter project as well. For now can you bump your gradle version in android/build.gradle (not android/app/build.gradle) based on this table?
For me it looks like this:
Looks fine for now. Lets me test out the rest and see how it goes.
worked after i update from 3.5.0 to 3.5.4
Worked after adjustment on Gradle version. Thank you.
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.
Oh crap looks like fix for android 11 also requires gradle version adjustments in flutter project as well. For now can you bump your gradle version in android/build.gradle (not android/app/build.gradle) based on this table?
For me it looks like this:
This works for me, thanks.
The solution worked. But I'm not happy that this issue exist.
Should'n there be a better solution than manually updating gradle? Some backward compatible that you didn't look into?
(just weird that updating this package ment that I had to update gradle)
Well my bad for introducing a breaking change in a patch version (luckily it wasn't a runtime error) The information has been added to the changelog and to the readme a while ago. At this point, we going to have to live with it. Will try to make sure does not happen next time :)
I got this error after pub get. Error: "Missing 'package' key attribute on element package at AndroidManifest.xml".
I have tried
flutter clean
, restart IDE, etc.. nothing helps..Error:
AndroidManifest.xml
file which related with the error.