Configuring Build Settings

Add Maven Repository

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

Groovy
buildscript {
    repositories {
        mavenCentral()
    }
} allprojects { repositories { mavenCentral() } }

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.

build.gradlebuild.gradle.kts
android {
  ...
  compileOptions {
     sourceCompatibility JavaVersion.VERSION_1_8
     targetCompatibility JavaVersion.VERSION_1_8
  }
  kotlinOptions {
     jvmTarget = '1.8'
  }
}

For more information about samples, refer to Andriod Sample.

Previous

Next

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

How can we improve this article?