Hi all, are there some relationship exists between compose version and idea version? My idea plugin cannot run on 2020.2 since I upgrade compose from 1.0.0 to 1.1.1
Copy code
java.lang.ClassCastException: androidx.compose.runtime.internal.ComposableLambdaImpl cannot be cast to kotlin.jvm.functions.Function2
e
eygraber
08/31/2022, 2:56 AM
It's probably related to mixing incompatible versions of Jetbrains and Jetpack compose
j
Jerry Yion
08/31/2022, 3:48 AM
Thx Eliezer, but how to fix it🥲
e
eygraber
08/31/2022, 2:11 PM
Make sure you're using compatible versions 😅
I've seen the problem when using a kmp library with a jvm target and no Android target using Jetbrains Compose 1.2.0 alphas that are compatible with Jetpack Compose 1.1.1
So the solution there would be to add an Android target to the library.
Although I think the latest alphas are compatible with 2.1.0 so maybe using the latest one wouldn't cause an issue anything