> ## Documentation Index
> Fetch the complete documentation index at: https://moengage-gr001-partner-ingestion-limits.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuring Build Settings

> Configure your Android project build settings by adding the Maven repository and enabling Java 8.

<Info>
  **Start here.** This is the first step in integrating the MoEngage Android SDK. Once you finish this page, continue with [Install Using BOM](/developer-guide/android-sdk/sdk-integration/basic-integration/Install-Using-BOM).
</Info>

## Add Maven Repository

Add the `mavenCentral()` 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`:

<CodeGroup>
  ```Groovy settings.gradle theme={null}
  dependencyResolutionManagement {
      repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
      repositories {
          google()
          mavenCentral()
      }
  }
  ```

  ```Kotlin settings.gradle.kts theme={null}
  dependencyResolutionManagement {
      repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
      repositories {
          google()
          mavenCentral()
      }
  }
  ```
</CodeGroup>

### Projects using `allprojects` (older Android Studio versions)

If your project still uses the project-level `build.gradle` to declare repositories, add `mavenCentral()` there.

<CodeGroup>
  ```Groovy build.gradle wrap theme={null}
  buildscript {
      repositories {
          mavenCentral()
      }
  }
  allprojects {
      repositories {
          mavenCentral()
      }
  }
  ```
</CodeGroup>

## Enable Java 8

The SDK is target and source compatible with version 8 of the Java Programming Language. Enable Java 8 in the application `build.gradle(.kts)` if not done already.

<CodeGroup>
  ```Groovy build.gradle wrap theme={null}
  android {
    ...
    compileOptions {
       sourceCompatibility JavaVersion.VERSION_1_8
       targetCompatibility JavaVersion.VERSION_1_8
    }
    kotlinOptions {
       jvmTarget = '1.8'
    }
  }
  ```

  ```Kotlin build.gradle.kts theme={null}
  android {
    ...
    compileOptions {
       sourceCompatibility = JavaVersion.VERSION_1_8
       targetCompatibility = JavaVersion.VERSION_1_8
    }
    kotlinOptions {
       jvmTarget = "1.8"
    }
  }
  ```
</CodeGroup>

For more information about samples, refer to the [Android Sample](https://github.com/moengage/Android-Sample).

## Next Step

Continue to [Install Using BOM](/developer-guide/android-sdk/sdk-integration/basic-integration/Install-Using-BOM) to add the MoEngage SDK to your app.
