Installation
    • 1 Minute to read
    • Dark
      Light

    Installation

    • Dark
      Light

    Article summary

    Get the Latest SDK on GitHub

    You can always find the latest release of the Mapp Intelligence Android SDK and detailed installation instructions in the SDK GitHub repository.

    Key Notes

    • The SDK uses AndroidX. Ensure that your app is migrated to AndroidX to avoid Manifest merger issues.

    • As of version 5.0.8, the SDK is hosted on mavenCentral(). Make sure to include mavenCentral() in your build script.

    • Starting with version 5.1.3, Java 11 is required (with support for target version 31). Make sure to set Java 11 as described in the SDK GitHub repository.

    Gradle Installation

    To integrate the Mapp Android SDK via Gradle, follow these steps:

    1. Update your app’s build.gradle file by adding the SDK dependency:

      implementation 'com.mapp.sdk:intelligence-android:<LATEST ANDROID SDK VERSION>'

    2. Ensure Java 8 compatibility in your build by including:

      compileOptions {
           targetCompatibility 1.8
           sourceCompatibility 1.8
      }

    Maven Installation

    If you’re using Maven as your build system, add the following dependency to your pom.xml:

    <dependency>
         <groupId>com.mapp.sdk</groupId>
         <artifactId>intelligence-android</artifactId>
         <version><LATEST ANDROID VERSION></version>
         <type>pom</type>
    </dependency>

    You can always find the latest release of the SDK on GitHub.

    Application Class Setup

    To prepare for SDK initialization and global configuration, extend the Application class in your app.

    Java

    public class TrackConfig extends Application {}

    Kotlin

    class TrackConfig : Application() {}

    Android Manifest Updates

    1. Add the necessary network permission to your AndroidManifest.xml:

      <uses-permission android:name= "android.permission.INTERNET" />
    2. Set your custom application class (TrackConfig) in the manifest by modifying the <application> tag:

      <application
          android:name=".TrackConfig"
      />


    Was this article helpful?

    What's Next