After i upgraded gradle and flutter version this issue appeared when building in profile mode :
* What went wrong:
A problem occurred configuring project ':beacon_broadcast'.
> 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.
Of course i specified the namespace in my build.gradle
This is my Flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel main, 3.27.0-1.0.pre.123, on Microsoft Windows [version 10.0.22631.4317], locale fr-FR)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Professional 2022 17.5.2)
[√] Android Studio (version 2024.1)
[√] VS Code (version 1.94.2)
[√] Connected device (4 available)
[√] Network resources
• No issues found!
After i upgraded gradle and flutter version this issue appeared when building in profile mode :
Of course i specified the namespace in my build.gradle
This is my Flutter doctor
If someone has and idea i'll take it ! Thank you