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

Map box is not integrated! #824

Open
Usamait13 opened this issue Dec 28, 2024 · 1 comment
Open

Map box is not integrated! #824

Usamait13 opened this issue Dec 28, 2024 · 1 comment

Comments

@Usamait13
Copy link

i am trying to implement mapbox in flutter app. I have followed all the steps but i am unable to load mapbox in my app it gives the following error.

`[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(error, Using MapView, MapSurface, Snapshotter or other Map components requires providing a valid access token when inflating or creating the map.
Provide the token by either:

  1. Creating a mapbox_access_token string resource.
  2. Or programmatically calling MapboxOptions.accessToken = <your_access_token>.
    The access token parameter is required when using a Mapbox service.
    Please see https://www.mapbox.com/help/create-api-access-token/ to learn how to create one.
    More information in this guide https://www.mapbox.com/help/first-steps-android-sdk/#access-tokens., null, com.mapbox.maps.MapboxConfigurationException: Using MapView, MapSurface, Snapshotter or other Map components requires providing a valid access token when inflating or creating the map.
    Provide the token by either:
  3. Creating a mapbox_access_token string resource.
  4. Or programmatically calling MapboxOptions.accessToken = <your_access_token>.
    The access token parameter is required when using a Mapbox service.
    Please see https://www.mapbox.com/help/create-api-access-token/ to learn how to create one.
    More information in this guide https://www.mapbox.com/help/first-steps-android-sdk/#access-tokens.`
@maios
Copy link
Contributor

maios commented Jan 2, 2025

Happy New Year @Usamait13! Could you provide how did you set the access token to our Maps service, did you follow the steps here but still it does not work?

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