mapbox-maps-android icon indicating copy to clipboard operation
mapbox-maps-android copied to clipboard

unknown property 'SDK_REGISTRY_TOKEN' error

Open pengju114 opened this issue 1 year ago • 6 comments

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.

pengju114 avatar Aug 13 '24 01:08 pengju114

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?

flasher297 avatar Aug 13 '24 08:08 flasher297

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 your suggestion, but I tried it and it doesn’t seem to work.

pengju114 avatar Aug 19 '24 01:08 pengju114

@pengju114 Could you please give more context? Do you try to compile an example app from this repo?

flasher297 avatar Aug 27 '24 16:08 flasher297

@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 avatar Sep 23 '24 03:09 pengju114

@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.

flasher297 avatar Sep 23 '24 17:09 flasher297

thank you very much. and below is the error screen shot: screenshot-20240926-121757

pengju114 avatar Sep 26 '24 04:09 pengju114

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.

pariahware avatar Jan 05 '25 22:01 pariahware

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.

WaseekSenju avatar Jul 08 '25 12:07 WaseekSenju