Hi all, are there some relationship exists between compose version and idea version? My idea plugin ...
j
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
It's probably related to mixing incompatible versions of Jetbrains and Jetpack compose
j
Thx Eliezer, but how to fix it🥲
e
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
j
Thanks so much Eliezer, I’ll have a try today