Add Android SDK in your Android project using a package manager

Add Android SDK in your Android project using a package manager

This document describes the steps to add the Android Mapp SDK to Android Studio

Installation

Current version:

For version higher than 6.0.12 we use mavenCentral()

Gradle

implementation('com.mapp.sdk:mapp-android:X.X.X')

or if your project use Maven

Maven

<dependency> <groupId>com.mapp.sdk</groupId> <artifactId>mapp-android</artifactId> <version>X.X.X</version> <type>pom</type> </dependency>


For versions bellow 6.0.18 Java 8 is required.

compileOptions { sourceCompatibility JavaVersion.VERSION_8 targetCompatibility JavaVersion.VERSION_8 }

 

From version 6.0.18 and newer the SDK requires that you enable Java 11 in your builds.

compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 }


Allow the network permission in your app manifest.

<uses-permission android:name="android.permission.INTERNET" />

The SDK supports min Android SDK (19).

Note that the SDK uses AndroidX, make sure to migrate your app to AndroidX Migration to avoid Manifest merger failure.

Related content