Add mavenCentral()
repository in the project-level build.gradle
file.
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.
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")
}