The Mapbox Core Libraries for Android are a set of utilities that help you with permissions, device location, and connectivity within your Android project. With these libraries, you can:
- Check for, request, and respond to any number of Android system permissions such as device location or camera.
- Check for and respond to a change in the device's internet connectivity status.
- Retrieve a device's real-time location.
This core module has no dependencies on any of the other Mapbox Java modules and only depends on having the Android API plugin inside your project.
Installation
Gradle
- Open Android Studio.
- Open up your application's
build.gradle
file. - Make sure that your project's
minSdkVersion
is at API 14 or higher. - Under dependencies, add a new build rule for the latest
mapbox-android-core
version (see below). - Click on
Sync Project with Gradle Files
near the toolbar in Android Studio.
implementation 'com.mapbox.mapboxsdk:mapbox-android-core:3.1.0'
Note: ProGuard directives are included in the Android dependencies to preserve the required classes.