https://kotlinlang.org logo
m

mattinger

12/03/2020, 2:33 PM
Copy code
java.lang.IncompatibleClassChangeError: Found interface org.jetbrains.kotlin.ir.declarations.IrClass, but class was expected
	at androidx.compose.compiler.plugins.kotlin.VersionChecker.check(VersionChecker.kt:65)
	at
s

sindrenm

12/03/2020, 2:37 PM
It is likely that you're not using Kotlin 1.4.20 across the board, then. alpha08 requires 1.4.20. Check your dependencies. Also check
./gradlew dependencies
. And make sure you have the
composeOptions
set with a Kotlin compiler version and Compose version in your build scripts.
m

mattinger

12/03/2020, 2:47 PM
yeah, generated build script didn’t use a variable in the composeOptions 😞. grumble…..
s

sindrenm

12/03/2020, 2:47 PM
Glad you figured it out. simple smile
2 Views