FlutterToast
FlutterToast copied to clipboard
Namespace error: Latest gradle plugin requires to specify a namespace for your project. The plugin doesn't automatically update namespace
The package’s android/build.gradle file should already have a namespace attribute that matches the package name.
same issue
I get this error when I try to compile an android .apk
`FAILURE: Build failed with an exception.
- What went wrong: A problem occurred configuring project ':fluttertoast'.
Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl. Namespace not specified. Please specify a namespace in the module's build.gradle file like so:
android {
namespace 'com.example.namespace'
}
If the package attribute is specified in the source AndroidManifest.xml, it can be migrated automatically to the namespace value in the build.gradle file using the AGP Upgrade Assistant; please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.
`
same. any solution?
when fix
You can use this until a new version is released:
dependencies:
fluttertoast:
git:
url: https://github.com/ponnamkarthik/FlutterToast.git
3 weeks ago, it was fixed in github but it's not yet released.