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

# Configuring Build Settings

## Add Maven Repository

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

<CodeGroup>
  ```Groovy Groovy theme={"theme":{"light":"github-light","dark":"github-dark"}}
  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 theme={"theme":{"light":"github-light","dark":"github-dark"}}
  android {
    ...
    compileOptions {
       sourceCompatibility JavaVersion.VERSION_1_8
       targetCompatibility JavaVersion.VERSION_1_8
    }
    kotlinOptions {
       jvmTarget = '1.8'
    }
  }
  ```

  ```Kotlin build.gradle.kts theme={"theme":{"light":"github-light","dark":"github-dark"}}
  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).
