The Mapbox Java SDK contains directions, geocoding, and many more APIs to use inside your Android or Java application.
The Mapbox Java SDK repository contains the source code divided into several modules, making it easier for developers to include only the dependencies that are necessary for their projects.
Getting Started
If you are looking to include this inside your project, please take a look at the detailed instructions found in our docs. If you are interested in building from the source, read the contributing guide inside of this project.
Documentation
You’ll find all of the documentation for this SDK on our Mapbox Java documentation page. This includes information on installation, using the APIs, and links to the API reference.
Getting Help
- Need help with your code?: Look for previous questions on the #mapbox tag — or ask a new question.
- Have a bug to report? Open an issue. If possible, include the version of Mapbox Java, a full log, and a project that shows the issue.
- Have a feature request? Open an issue. Tell us what the feature should do and why you want the feature.
Using Snapshots
If you want to test recent bug fixes or features that have not been packaged in an official release yet, you can use a -SNAPSHOT release of the current development version of the Mapbox Java SDK via Gradle, available on JFrog. There are several different snapshots built nightly. Feel free to use any of the modules as needed.
gradle
repositories {
maven {
url 'https://api.mapbox.com/downloads/v2/snapshots/maven'
authentication {
basic(BasicAuthentication) {
credentials {
username = 'mapbox'
password = 'secret Mapbox token with DOWNLOADS:READ scope, the same as the token used for the release repository'
}
}
}
}
}
dependencies {
implementation 'com.mapbox.mapboxsdk:mapbox-sdk-services:6.9.0-SNAPSHOT'
}
Sample Code
View the CLI samples or download the Mapbox Demo App to see what’s possible with the Mapbox Java SDK. You can also visit the Mapbox Android examples page for additional code examples.
Contributing
All libraries are contained within the mapbox folder. You can import the project using Android Studio or IntelliJ IDEA. Read the contribution guide to get set up properly.
Troubleshooting
If you encounter issues while using the Mapbox Java SDK, consider the following troubleshooting steps:
- Ensure the Mapbox token you are using has the correct scopes.
- Check your internet connection and ensure all dependencies are correctly added to your Gradle file.
- If facing compilation issues, clean your project and rebuild it.
- If the API does not respond, verify the API endpoint and your request parameters.
For more insights, updates, or to collaborate on AI development projects, stay connected with fxis.ai.
At fxis.ai, we believe that such advancements are crucial for the future of AI, as they enable more comprehensive and effective solutions. Our team is continually exploring new methodologies to push the envelope in artificial intelligence, ensuring that our clients benefit from the latest technological innovations.

