Hi, any idea why I can not use kotlin 1.9.20 with ...
# compose
j
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
Yes, but compose compiler doesn't support Kotlin 1.9.20 yet (it's a different artifact)
image.png
e
The Jetbrains Compose compiler supports 1.9.20. @Jan are you also using the Jetpack Compose compiler?
j
Hm ok, I think I am using the one from google ...
how can I change that?
l
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
that is probably the problem ...
l
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
thanks, now its working!
👍 1