Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Fails on Android Studio Ladybug with Flutter 3.27.1 #52

Open
smjxpro opened this issue Jan 7, 2025 · 1 comment
Open

Build Fails on Android Studio Ladybug with Flutter 3.27.1 #52

smjxpro opened this issue Jan 7, 2025 · 1 comment

Comments

@smjxpro
Copy link

smjxpro commented Jan 7, 2025

Describe the bug
When building on Android Studio Ladybug with Flutter 3.27.1 build fails with the following message:

A problem occurred configuring project ':async_wallpaper'.
> 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: /Users/user/.pub-cache/hosted/pub.dev/async_wallpaper-2.1.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
Steps to reproduce the behavior:

  1. Use Android Studio Ladybug and Flutter 3.27.1
  2. Create a new flutter project
  3. Add async_wallpaper as dependency
  4. Run

Expected behavior
Build and Run should be successful

Flutter:

  • 3.27.1
  • stable

Dart:

  • 3.6.0

Additional context
Use Android Studio Ladybug with the bundled JDK or JDK 21

@2bndy5
Copy link

2bndy5 commented Jan 17, 2025

I just hit this error also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants