I depend on soundpool 2.3.0 in my app. I just tried to upgrade the Android side of the Flutter app to AGP 8.0+ (to be precise it's AGP 8.1 now), because Android Studio brings up the upgrade assistant for the last half year about this. The upgrade fails because some of the plugins don't have the namespace in their build.gradle. On of the failing plugins is the soundpool.
The build error message
A problem occurred configuring project ':soundpool'.
> 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.
Steps to Reproduce
I depend on soundpool
2.3.0
in my app. I just tried to upgrade the Android side of the Flutter app to AGP 8.0+ (to be precise it's AGP 8.1 now), because Android Studio brings up the upgrade assistant for the last half year about this. The upgrade fails because some of the plugins don't have thenamespace
in theirbuild.gradle
. On of the failing plugins is thesoundpool
.The build error message
Code sample
Current
build.gradle
:Expected (the way it is handled in Flutter Community plugins, along with he removal of the namespace from the AndroidManifest.xml):
Details