On the latest version of the package I'm getting the following error:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':flutter_notification_listener'.
> 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.
This is the output of flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on macOS 14.5 23F79 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.1)
[✓] VS Code (version 1.94.2)
[✓] Connected device (4 available)
[✓] Network resources
• No issues found!
Hello @jiusanzhou,
On the latest version of the package I'm getting the following error:
This is the output of
flutter doctor
:I also tried to fork the repo and fix the issue using the official documentation provided by the Android Studio guidelines but without success.
Thanks a lot for your time ✨