Hello, I’ve updated some stuff ( Gradle, AGP, plug...
# android
d
Hello, I’ve updated some stuff ( Gradle, AGP, plugins & libs ) and now I have this error
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
calling inline functions from libs (
ktx
& various
-ktx
). What could have go wrong? I have both:
Copy code
android
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8
    }
}
&&
Copy code
tasks.withType<KotlinCompile> {
    kotlinOptions.jvmTarget = "1.8"
}
✔️ 1
g
Check that you set Kotlin jvmTarget on all modules
d
I’ve just fixed adding this in
buildSrc
🙂
Copy code
kotlinDslPluginOptions.jvmTarget.set("1.8")
Ow, is solved in the IDE, but still there at compile time 😕