https://kotlinlang.org logo
Title
m

Marco Pierucci

04/13/2023, 12:47 PM
I'm a bit confused about the recently released compiler version "1.4.5" I had a PR upgrading kotlin to 1.8.20 and compose compiler. I was using 1.4.4-dev-k1.8.20-f6ae19e64ff and was working correctly. Today I tried with 1.4.5 and get
androidx/compose/compiler/plugins/kotlin/ComposeComponentRegistrar has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
Does that means that I need to set jdk to 17 on my sdk location?
v

vide

04/13/2023, 12:50 PM
Yeah, there's a lot of discussion about it! TLDR:
1.4.5
requires JDK 17, but
1.4.6
is coming soon and it will support 11 again. See more details at: • https://kotlinlang.slack.com/archives/CJLTWPH7S/p1681335595033629https://kotlinlang.slack.com/archives/CJLTWPH7S/p1681323339179339?thread_ts=1681323339.179339&cid=CJLTWPH7S
m

Marco Pierucci

04/13/2023, 12:50 PM
Holy cow
cool thanks
j

jim

04/19/2023, 5:55 PM
Compose Compiler 1.4.6 with support for Java11 toolchain is released: https://developer.android.com/jetpack/androidx/releases/compose-compiler#1.4.6
m

Marco Pierucci

04/19/2023, 6:07 PM
Excellent, thanks for the update