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

Building to android fails (flutter 3.27.0) #1434

Open
TBA-Lucas opened this issue Jan 29, 2025 · 1 comment
Open

Building to android fails (flutter 3.27.0) #1434

TBA-Lucas opened this issue Jan 29, 2025 · 1 comment

Comments

@TBA-Lucas
Copy link

TBA-Lucas commented Jan 29, 2025

Hi everyone,

I'm trying to build for android and it fails - It could be related to the new flutter version 3.27.0 that I'm currently using and new requirements for compiling to android.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':mapbox_gl'.
> 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.

I was able to fix that exception by manually adding the namespace to the build.gradle file of mapbox_gl in the Pub/Cache folder:

android {
     namespace = "com.mapbox.mapboxgl"
     ....
}
@MuneebJaan
Copy link

where to find the mapbox gl build.gridle

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