mapbox / mapbox-maps-flutter

Interactive, thoroughly customizable maps for Flutter powered by Mapbox Maps SDK
https://www.mapbox.com/mobile-maps-sdk
Other
283 stars 112 forks source link

SDK Registry token is null. #178

Closed renatoacc closed 1 year ago

renatoacc commented 1 year ago

For a few weeks I have been having one problem with my app, I try to build the app to test, and gives me this error.

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

2: Task failed with an exception.

BUILD FAILED in 2s Exception: Gradle task assembleDebug failed with exit code 1

I see the same issue on mapbox_gl. I use the Android studio version electric eel IDE, but I start to have this problem when I update my IDE to the Flamingo version, I downgrade and I can work for one or two hours, and now gives me the same error.

Can you help me?

renatoacc commented 1 year ago

To solve this problem, e 14 hours later my team leader tell me to try to do the key export inside the project folder and BUM the app runs perfectly. Before I tried to do the export in the main folder and run the app and nothing,

navirobayo commented 6 months ago

I'm commenting in case someone else had the same issue. The answer is very simple once you realize it:

You need to create the gradle.properties in your actual hard drive , not in the project folder.

The mapbox documentation is very clear about this here but for some reason we might ignore it.

Hope it helps, cheers.