JulianAssmann / flutter_background

A flutter plugin to keep apps running in the background via foreground services. Android only.
https://pub.dev/packages/flutter_background
MIT License
85 stars 45 forks source link

[BUG] Build breaks with AGP 8.4 #84

Closed emersion closed 1 month ago

emersion commented 1 month ago

Describe the bug When upgrading AGP to 8.4 in a project which uses this plugin, the build fails with:

    A problem occurred configuring project ':flutter_background'.
    > 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: /home/simon/.pub-cache/hosted/pub.dev/flutter_background-1.2.0/android/build.gradle. 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. 

To Reproduce Run the AGP upgrade assistant from any project using this plugin.

Expected behavior Build should succeed.

Screenshots n/a

Smartphone: n/a

emersion commented 1 month ago

Sounds like this is already addressed here: https://github.com/JulianAssmann/flutter_background/commit/7a608c3594e5f77c8a232572be3770d825c5baf3

Would you mind making a new release?