Hi friends, while using certain Compose Multiplatform libraries, I'm seeing this error in my IDE and I'm not sure how to fix this. Please help:
Here's the error message:
Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option
Also shown in the first image below
And over the internet, people have given suggestions to set
androidTarget.compilations.all.kotlinOptions.jvmTarget = "11"
and set
android.compileOptions.sourceCompatibility
and
targetCompatibility
to JavaVersion.VERSION_11
But I can see that's already done in my project (also shown in the second image below)
I have also tried invalidating the cache and restarting Android Studio.
Btw, I am using
Android Studio Iguana | 2023.2.1 Canary 16
, could that have anything to do with the issue? Or is there anything else I'm missing here?