5. Upgrade to Java 8

Since the SDK uses Java 8, you’ll also need to update to that version of Java to ensure compatibility. Add these lines to your module gradle.build file.

gradle.build
android {
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

Last updated