Start here. This is the first step in integrating the MoEngage Android SDK. Once you finish this page, continue with Install Using BOM.
Add Maven Repository
Add themavenCentral() repository in your project. Where you declare it depends on your project’s repository management approach.
Projects using settings.gradle (Android Studio Flamingo and later)
Newer Android projects (created with Android Studio Flamingo or later) manage repositories in settings.gradle(.kts). Add mavenCentral() to dependencyResolutionManagement:
Projects using allprojects (older Android Studio versions)
If your project still uses the project-level build.gradle to declare repositories, add mavenCentral() there.
Enable Java 8
The SDK is target and source compatible with version 8 of the Java Programming Language. Enable Java 8 in the applicationbuild.gradle(.kts) if not done already.