https://kotlinlang.org logo
#android
Title
# android
m

mingkangpan

10/23/2019, 9:14 AM
Copy code
Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
anyone dealt with this error before? I have specified target to 1.8 in gradle and also in kotlin compiler target...
stackoverflow 1
m

Mark Murphy

10/23/2019, 10:43 AM
Add the following to the
android
closure of your module's
build.gradle
file:
Copy code
compileOptions {
        sourceCompatibility = 1.8
        targetCompatibility = 1.8
    }

    kotlinOptions {
        jvmTarget = "1.8"
    }
1
2 Views