Join Slack
Powered by
How can I target JVM 21 in a Kotlin 2.1.21 project...
# getting-started
v
v79
07/19/2025, 8:42 AM
How can I target JVM 21 in a Kotlin 2.1.21 project?
jvmTarget.set(JvmTarget.JVM_21)
is an unresolved reference. JVM_20 exists but not 21.
v79
07/19/2025, 8:53 AM
Ah, perhaps I need Kotlin 2.2.0 for that.
k
Klitos Kyriacou
07/19/2025, 2:10 PM
You need Kotlin Gradle Plugin version 1.9.20 or later.
s
Stephan Schröder
07/20/2025, 10:25 PM
For completeness, you should probably use the same version for Kotlin and Kotlin Gradle Plugin.
Open in Slack
Previous
Next