Open tabbg opened 1 year ago
I am also facing the same issue with the package, I have done all the config settings given on the readme file of this package.
Does, any one able to fix this issue, or can help me how to fix this issue?
Hello there, @tabbg and @rahul07sharmars
If I may, where have you placed your Mapbox secret key?
I'm also facing the same issue.
@nziokajimkelly I've added secret key to .gradle/gradle.properties and android/gradle.properties.
Has this been resolved?
@maxiggle Please check if your credentials are placed properly.
They are properly placed. I downloaded the example code and ran it, since the access token is supposed to be stored in GRADLE_HOME, i assume the example code uses my token. The example code works. When I remove it, the example code throws a null error
But somehow does not run for my project. The IOS versions works perfectly
I was having same issue because I misconfigured the mapbox credentials
may I share a few images?, so you can help me see what's different?
Okay sure please
The first one when I open gradle.properties
file
Is this your token secret token?
Yes it is
I have the Pk which is the public one delivered via flutterdotenv package
Did you create mapbox_access_token.xml file with this content too
<resources xmlns:tools="http://schemas.android.com/tools">
<string name="mapbox_access_token" translatable="false" tools:ignore="UnusedResources">ADD_MAPBOX_ACCESS_TOKEN_HERE</string>
</resources>```
No I did not Is that necessary?
https://pub.dev/packages/flutter_mapbox_navigation As the document first step says that I think it is needed, you can give it a try
This access token is the secret token Yes?
No Its supposed to be public access token
okay
Still got the same error I deleted my gradle cache Still does not work
If I add the MAPBOX_DOWNLOADS_TOKEN to the user_gradle home, does it automatically reflect on gradle.properties file generated in the Flutter project?
How to modify it?