mapbox / mapbox-maps-android

Interactive, thoroughly customizable maps in native Android powered by vector tiles and OpenGL.
https://www.mapbox.com/mobile-maps-sdk
Other
478 stars 135 forks source link

unknown property 'SDK_REGISTRY_TOKEN' error #2453

Open pengju114 opened 3 months ago

pengju114 commented 3 months ago

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.

flasher297 commented 3 months ago

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?

pengju114 commented 3 months ago

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.

flasher297 commented 3 months ago

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

pengju114 commented 2 months ago

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

flasher297 commented 2 months ago

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

pengju114 commented 2 months ago

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