After updating Compose to 1.7.0-alpha01 I'm now ge...
# compose-desktop
a
After updating Compose to 1.7.0-alpha01 I'm now getting errors like:
Copy code
Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8
The module that is failing has several KMP targets, e.g.
jvm
and
android
. How do I specify
jvmTarget
for just
jvm
? I tried the following way as per the docs, but it didn't help.
Copy code
kotlin {
    jvm {
        compilerOptions {
            jvmTarget.set(JvmTarget.JVM_11)
        }
    }
}
n
I would suggest opening the issue in the Kotlin issue tracker
a
Sure, if this looks like a bug.
n
Yes, it seems so. At least as you describe it
a
There are two issues mentioned: the build failure and the jvmTarget parameter not working. What do you think is the bug?
n
I don't know. Both should be reproduced and the root cause should be found.
👍 1
a
Thanks! In my case, I had a hidden Gradle code that was specifying JvmTarget 1.8 for all compilation tasks. This prevented me from changing the version in a particular Gradle module. Once I updated that code, everything started to work alright.