pszklarska / beacon_broadcast

A Flutter plugin for turning your device into a beacon.
https://pub.dartlang.org/packages/beacon_broadcast/
MIT License
81 stars 34 forks source link

Problem using this package in recent Flutter version #42

Open LeoCrenon opened 1 week ago

LeoCrenon commented 1 week ago

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!

If someone has and idea i'll take it ! Thank you

Yolo-cell-hash commented 1 week ago

I was facing a similar issue but this thread's AymKdm's solution did work for me