Android SDK Installation 8.2.0 and Above

Adding Dependency

To add MoEngage's Android SDK to your application, go to <project-path>/platforms/android/app and create a file with the name build-extras.gradle. If you already have this file in your project, you need not create another one.

cbd3f2a-Screenshot_2019-08-31_at_3.46.07_PM.png

Once the file is created, add the MoEngage SDK dependency in this file.

Groovy
// adding the repositories block is optional. You can choose not to add this block if you have already added these repositories to your project.
repositories {
  google()
  mavenCentral()
}

dependencies {
  implementation("androidx.core:core:1.6.0")
  implementation("androidx.appcompat:appcompat:1.3.1")
  implementation("androidx.lifecycle:lifecycle-process:2.7.0")
  implementation("com.moengage:moe-android-sdk:13.02.00")
}

replace $sdkVersion with the appropriate SDK version

info

Note

You can add the firebase messaging dependency also to this file itself if your file does not already have firebase messaging added.

Previous

Next

Was this article helpful?
0 out of 0 found this helpful

How can we improve this article?