Getting the Android app compiled from Android studio


just wanted to post as a newcomer to the project: cloning the repository and going by the setup instructions is unfortunately not enough, Android Studio and mapbox in it will need a mapbox key in order to be able to download the assets; otherwise, you’ll get an error that Android Studio thinks that it’s offline or something, and clicking on the url within will give you a 401 Unauthorized error.

What you’ll need is to set up a MAPBOX_DOWNLOADS_TOKEN in, that is a secret key, and a mapbox_access_token properly set up with your public key in app/src/main/res/values/mapbox-token.xml.

See the instructions here for getting a public/secret key:

1 Like

Thanks for posting this! I got the same problem and was able to resolve it with your suggestions! Maybe we should add this to setup instructions?