FlutterToast icon indicating copy to clipboard operation
FlutterToast copied to clipboard

Namespace error: Latest gradle plugin requires to specify a namespace for your project. The plugin doesn't automatically update namespace

Open ENCRYPTIN opened this issue 1 year ago • 6 comments

The package’s android/build.gradle file should already have a namespace attribute that matches the package name.

ENCRYPTIN avatar Jun 02 '23 19:06 ENCRYPTIN

same issue

Heyholder avatar Jun 03 '23 20:06 Heyholder

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.

`

sarahk avatar Jul 03 '23 05:07 sarahk

same. any solution?

eggysudianto avatar Jul 03 '23 06:07 eggysudianto

when fix

kotaibaw avatar Jul 16 '23 12:07 kotaibaw

You can use this until a new version is released:

dependencies:
  fluttertoast:
    git:
      url: https://github.com/ponnamkarthik/FlutterToast.git

a-h-mzd avatar Aug 02 '23 14:08 a-h-mzd

3 weeks ago, it was fixed in github but it's not yet released.

RenautMestdagh avatar Aug 04 '23 12:08 RenautMestdagh