Hi, I have a Gradle project with 3 subprojects usi...
# compose-desktop
g
Hi, I have a Gradle project with 3 subprojects using Compose for desktop. Two of the subprojects are Compose applications and then the third is shared code between the two. I am getting an error in the IDE that I can't seem to get to go away. It is "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". In all my build.gradle.kts files I am setting the kotlinOptions.jvmTarget to 15 but its like the IDE ignores it. This only happens in a Gradle project with subprojects. Does anyone know how to get this to go away?
n
i ran into a similar issue, i think currently intellij idea 2020.3 does not have java 15 support that is working fully downgrading to
jvmTarget = "14"
fixed a similar issue for me (although not using compose)
s
@Nikky are you talking about kotlin compiler target? IntelliJ has added support for java 15 since 2020.2 (https://blog.jetbrains.com/idea/2020/09/java-15-and-intellij-idea/)
n
i know that it should have that, maybe it was also just a temporary failure.. like kotlin plugin for 1.4.20 not being available i mean that for some reason after upgrading to the latest idea version some reatures with jvm 15 stopped working for a few of our developers and our fastest solution to this was downgrading the jvmTarget in gradle, because nobody really wants to figure out those details