Describe the bug
I updated Flutter to version 3.24.3, and encountered the following error.
What went wrong:
A problem occurred configuring project ':qr_code_scanner'.
Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.
If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.
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.
Flutter information
Always provide the output of flutter doctor -v as it is needed in order to know on which Flutter versions the bug exists in.
flutter --version
Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 2663184aa7 (4 days ago) • 2024-09-11 16:27:48 -0500
Engine • revision 36335019a8
Tools • Dart 3.5.3 • DevTools 2.37.3
Device (please complete the following information):
Device: [phone api 35 ]
OS: [e.g. iOS8.1]
Screenshots
If applicable, add screenshots to help explain your problem.
Describe the bug I updated Flutter to version 3.24.3, and encountered the following error.
What went wrong: A problem occurred configuring project ':qr_code_scanner'.
If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.
Try:
Flutter information Always provide the output of
flutter doctor -v
as it is needed in order to know on which Flutter versions the bug exists in.flutter --version
Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision 2663184aa7 (4 days ago) • 2024-09-11 16:27:48 -0500 Engine • revision 36335019a8 Tools • Dart 3.5.3 • DevTools 2.37.3 Device (please complete the following information):Screenshots If applicable, add screenshots to help explain your problem.
Additional context