SDK Integration

To get up and running with MoEngage on Android, there a couple of steps to get you there.


Adding Dependency

Add mavenCentral() repository in the project level build.gradle file.

buildscript {
    repositories {

allprojects {
    repositories {

Add the below dependency in the app/build.gradle file.

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])

where $sdkVersion should be replaced by the latest version of the MoEngage SDK.

Refer to the SDK Configuration documentation to know more about the build config and other libraries used by the SDK.

Enable Java 8

From SDK version 11.0.00 and above SDK is target and source compatible with version 8 of the Java Programming Language. Enable Java 8 in the application's build.gradle if not done already.

android {


  compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8

  kotlinOptions {
    jvmTarget = '1.8'


Sample Implementation

API Reference

You can find the complete API Reference for the SDK here


If your app is using AndroidX libraries please make sure you have added the legacy-support-v4 dependency to your application provided your SDK version is 10.3.02 or lower

What’s Next

After successful installation, let us initialise the SDK