unknown property 'SDK_REGISTRY_TOKEN' error
When building the project, the build system generates the following error: Could not get unknown property 'SDK_REGISTRY_TOKEN' for root project 'Mapbox Maps Android' of type org.gradle.api.Project.
And I have placed a property “SDK_REGISTRY_TOKEN” and set it's value to my token in the local.properties file, But the error still there. Some one can help? thanks.
Thank you for the question.
You can follow this guide to set up SDK_REGISTRY_TOKEN
https://docs.mapbox.com/android/maps/guides/install/
Could you try to set it up in the Environment variable?
Thank you for the question. You can follow this guide to set up
SDK_REGISTRY_TOKENhttps://docs.mapbox.com/android/maps/guides/install/ Could you try to set it up in the Environment variable?
Thank you for your suggestion, but I tried it and it doesn’t seem to work.
@pengju114 Could you please give more context? Do you try to compile an example app from this repo?
@flasher297 yes, i want to run the example downloaded from this repo on the android device, for some technology research. and now my project of the example still building fail. i have config the environment following your guidance, but it doesn't work.
@pengju114 thank you for the additional explanations. We'll try to verify the ability to compile our public examples in this repo and come back to you with a report.
thank you very much. and below is the error screen shot:
The tutorial says to use $MAPBOX_ACCESS_TOKEN as the environment variable, but the project uses $SDK_REGISTRY_TOKEN. I just made both with the same key.
The tutorial says to use $MAPBOX_ACCESS_TOKEN as the environment variable, but the project uses $SDK_REGISTRY_TOKEN. I just made both with the same key.
I ran into the same issue and even started doubting myself for using $SDK_REGISTRY_TOKEN, but the public token didn’t work for me either, I had to use a secret (secure) token to get it working.