Shubham Singh
12/05/2023, 11:26 AMCannot 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?Pablichjenkov
12/05/2023, 12:12 PMcompileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
Try like above. Could you identify the specific Library that when included triggers the issue?
If so try to update that library. Oh wait, I see the first screenshot, nvm.Shubham Singh
12/05/2023, 12:27 PMTry like above. Could you identify the specific Library that when included triggers the issue?
If so try to update that library. Oh wait, I see the first screenshot, nvm.Glad that you saw the library. Just to be clearer, I'm seeing this with 2 libraries: 1. io.github.qdsfdhvh:image-loader 2. moe.tlaster:precompose Attaching error from 2nd library below:
Pablichjenkov
12/05/2023, 12:34 PMShubham Singh
12/05/2023, 12:36 PMMichael Paus
12/05/2023, 12:57 PM@file:Suppress(“INLINE_FROM_HIGHER_PLATFORM”)
to every affected file, and now your IDE is usable again!Shubham Singh
12/05/2023, 1:24 PMMichael Paus
12/05/2023, 1:41 PMVishnu Shrikar
12/07/2023, 8:40 AMVishnu Shrikar
12/07/2023, 8:43 AMShubham Singh
12/07/2023, 8:44 AMVishnu Shrikar
12/07/2023, 8:46 AM@file:Suppress("INLINE_FROM_HIGHER_PLATFORM")
and thanks michael and shubham for the help