The Mapbox Java SDK is an open source toolset for building projects that need directions, geocoding, static map images, geospatial calculations, and more. It provides convenient wrappers around Mapbox APIs for use in any Java application. This SDK does use AndroidX annotations but has no dependencies on the Android SDK API.
Here are the current Java SDK dependencies that you can use in your Android or Java project.
GeoJSON: Java classes that model the GeoJSON spec.
Services: Convenient wrappers to interact with Mapbox APIs: Matrix, Geocoding, Tilequery, Optimization, Static Image, Map Matching, and Isochrone.
Turf: Runtime geospatial calculations.
Core: Color, text, and networking utility classes.
You'll need to have a Mapbox access token if you plan to use any of the
mapbox-sdk-services Mapbox APIs wrappers. An access token is not needed if you plan to use the Mapbox Java SDK's GeoJSON package, Turf package, or certain parts of the Core package. Learn more about how Mapbox access tokens work.