Exception in thread "main" java.lang.ClassCastException: class androidx.compose.runtime.internal.ComposableLambdaImpl cannot be cast to class kotlin.jvm.functions.Function0 (androidx.compose.runtime.internal.ComposableLambdaImpl and kotlin.jvm.functions.Function0 are in unnamed module of loader 'app')
before?
👌 1
e
eygraber
08/14/2022, 1:39 AM
I've seen that when mixing Jetbrains Compose and Jetpack Compose i.e. using Jetbrains 1.2.0 dev builds points to Jetpack 1.1.1 so if your project uses Jetpack 1.2.0 you can see that error.
c
CLOVIS
08/14/2022, 2:22 PM
…
Is there a table somewhere that says exactly which version should be used with which? My only requirement is that I want to use Kotlin 1.7.0+
e
eygraber
08/14/2022, 2:36 PM
Sorry I think I didn't describe the issue correctly.
I've seen this when I'm in an Android project that uses Compose 1.2, and depends on a library that uses Jetbrains Compose that targets jvm but not Android. The solution for me was to target Android in the Jetbrains Compose library