Android 4.x.x

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

build.gradle
buildscript {
    repositories {
        mavenCentral()
    }
}

allprojects {
    repositories {
        mavenCentral()
    }
}

Once you install the Flutter Plugin add MoEngage's native Android SDK dependency to the Android project of your application along with the dependencies mentioned below.
Navigate to android --> app --> build.gradle. Add the MoEngage Android SDK's dependency inside the dependencies block.

build.gradle
  dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation("androidx.core:core:1.3.1")
    implementation("androidx.appcompat:appcompat:1.2.0")
    implementation("androidx.lifecycle:lifecycle-process:2.2.0")
    implementation("com.moengage:moe-android-sdk:11.6.01")
}
Was this article helpful?
0 out of 0 found this helpful