Android Studio: Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6

July 24, 2019

Edit Project build.gradle

android {
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8
    }
    kotlinOptions {
        jvmTarget = JavaVersion.VERSION_1_8
    }
}

NOTE: JavaVersion.VERSION_1_8 = '1.8'

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.