Project setup
Follow the steps below to get your Android Studio project up and running with the CoPilot Native Nav SDK and its components. You can also view sample projects and code in our public GitHub repository.
- Open your project in Android Studio
- Open up your project-level
settings.gradle
file (settings.gradle.kts
file in Kotlin) - If there is already a
dependencyResolutionManagement
block in thebuild.gradle
file, copy the Trimble Maps repository in there:
- Open up your module-level
build.gradle
file. - Ensure your project’s minSdk version is at API 21 or higher.
- Under dependencies, add a new build rule for the latest SDK:
dependencies {
implementation("com.trimblemaps.navigation:ui:1.4.2")
implementation("com.trimblemaps.mapsdk:maps-sdk-services:1.4.0")
}
- Enable Jetifier in your
gradle.properties
file.
android.enableJetifier=true
-
Build and synchronize your project.
-
Enable the appropriate permissions and authenticate your credentials.