https://kotlinlang.org logo
#compose
Title
# compose
j

Jan

11/07/2023, 1:58 PM
Hi, any idea why I can not use kotlin 1.9.20 with compose multiplatform 1.5.10?
Copy code
This version (1.5.3) of the Compose Compiler requires Kotlin version 1.9.10 but you appear to be using Kotlin version 1.9.20 which is not known to be compatible.  Please consult the Compose-Kotlin compatibility map located at <https://developer.android.com/jetpack/androidx/releases/compose-kotlin> to choose a compatible version pair (or `suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!).
l

Lukasz Kalnik

11/07/2023, 2:48 PM
Yes, but compose compiler doesn't support Kotlin 1.9.20 yet (it's a different artifact)
image.png
e

eygraber

11/07/2023, 3:27 PM
The Jetbrains Compose compiler supports 1.9.20. @Jan are you also using the Jetpack Compose compiler?
j

Jan

11/07/2023, 3:47 PM
Hm ok, I think I am using the one from google ...
how can I change that?
l

Lukasz Kalnik

11/07/2023, 3:55 PM
Can you show your
build.gradle.kts
?
If you configure it inside the
android
block:
Copy code
android {
   composeOptions {
        kotlinCompilerExtensionVersion = "1.5.3"
    }
}
then it probably just takes the one from Google.
j

Jan

11/07/2023, 3:59 PM
that is probably the problem ...
l

Lukasz Kalnik

11/07/2023, 4:08 PM
That's an example configuration of a Compose Multiplatform Android subproject https://github.com/JetBrains/compose-multiplatform/blob/master/examples/chat/androidApp/build.gradle.kts
j

Jan

11/07/2023, 4:25 PM
thanks, now its working!
👍 1
2 Views