Skip to main content

Integrate the SDK

|

This guide describes the steps to install the most recent version of the Maps SDK for Android and configure your Android app to use the SDK.

Prerequisites

Download and install Android Studio from the official Android Developer website.

info

The procedures described in this document were carried out with Android Studio Narwhal 3 Feature Drop | 2025.1.3.

Option 1: Maven dependency

Magic Lane provides the Maps SDK for Android via Maven.

Step 1: Configure the Maven repository

Open your android project and open settings.gradle.kts file. Inside dependencyResolutionManagement tag and it's repositiories child add the following maven dependency :

...
dependencyResolutionManagement {
...
repositories {
...
maven {
url = uri("https://developer.magiclane.com/packages/android")
}
}
}

Step 2: Add the Maps SDK for Android dependency

Open your module-level build.gradle.kts file and add the following code inside the dependencies block to include the Maps SDK for Android:

dependencies {
...
implementation("com.magiclane:maps-kotlin:1.7.0")
}

After that, press Sync Project with Gradle files.

Option 2: Local AAR library

Optionally you can download the Maps SDK for Android .aar file, then create the following project structure: your_project/app/libs/.

VersionDownload
1.8.4 (Latest)MAGICLANE-MAPS-SDK-ANDROID-KOTLIN-7.1.26.12.ADB30465_x86_64-armeabi_v7a-arm64_v8a.zip
1.8.3MAGICLANE-MAPS-SDK-ANDROID-KOTLIN-7.1.26.12.FC99A40E_x86_64-armeabi_v7a-arm64_v8a.zip
1.8.2MAGICLANE-MAPS-SDK-ANDROID-KOTLIN-7.1.26.9.45AF722D_armeabi_v7a-arm64_v8a-x86_64.zip
1.8.1MAGICLANE-MAPS-SDK-ANDROID-KOTLIN-7.1.26.8.4EE9C177_armeabi_v7a-arm64_v8a-x86_64.zip
1.8.0MAGICLANE-MAPS-SDK-ANDROID-KOTLIN-7.1.26.8.79E4DAF7_armeabi_v7a-arm64_v8a-x86_64.zip
1.7.1MAGICLANE-MAPS-SDK-ANDROID-KOTLIN-7.1.25.47.AA1CA1F2_armeabi_v7a-arm64_v8a-x86_64.zip
1.7.0MAGICLANE-MAPS-SDK-ANDROID-KOTLIN-7.1.25.41.85504BAA_x86_64-x86-armeabi_v7a-arm64_v8a.zip
1.6.2MAGICLANE-MAPS-SDK-ANDROID-KOTLIN-7.1.25.29.063A32EE_x86_64-x86-armeabi_v7a-arm64_v8a.zip
1.6.1MAGICLANE-MAPS-SDK-ANDROID-KOTLIN-7.1.25.24.A0E07DC1_x86_64-x86-armeabi_v7a-arm64_v8a.zip
1.6.0MAGICLANE-MAPS-SDK-ANDROID-KOTLIN-7.1.25.22.5235077E_x86_64-x86-armeabi_v7a-arm64_v8a.zip
1.5.5MAGICLANE-MAPS-SDK-ANDROID-KOTLIN-7.1.25.10.7B562D2D_x86_64-x86-armeabi_v7a-arm64_v8a.zip

Add the .aar in the libs directory and the following code inside the dependencies block from the module-level build.gradle.kts file to include the Maps SDK for Android:

dependencies {
implementation(files("libs/<AAR_FILE>.aar"))
}

You are now ready to go to the next step: Implement the application code.