I got <this error> in the linked project... I am u...
# k2-adopters
j
I got this error in the linked project... I am using the latest compose build that support k2 in build 2.0.0-Beta3... I tried updating AGP to the latest alpha, but the error is the same...
Copy code
kotlin version: 2.0.0-Beta3
error message: java.lang.NoClassDefFoundError: org/jetbrains/kotlin/ir/declarations/IrDeclarationOrigin$IR_BUILTINS_STUB
	at androidx.compose.compiler.plugins.kotlin.analysis.StabilityInferencer.stabilityOf(Stability.kt:251)
	at androidx.compose.compiler.plugins.kotlin.analysis.StabilityInferencer.stabilityOf(Stability.kt:360)
	at androidx.compose.compiler.plugins.kotlin.analysis.StabilityInferencer.stabilityOf(Stability.kt:426)
it seems this has been reported, but it is tagged as obsolete.. how to proceed ?
d
cc @shikasd
s
Make sure you use compatible builds, probably beta3 is the most suitable here Compose doesn't track Kotlin dev versions yet, so you get binary incompatibilities when running the plugin.
j
I used the compose build released with support to beta3
s
Ah, thanks for confirming I'll take a look at this tomorrow
I just tested beta3 with Compose compiler
1.5.9-dev-k2.0.0-Beta3-7c5ec6895a0
and it compiles for me It does look like Kotlin compiler had a binary incompatible change in that area, but the Compose artifact is rebased correctly
j
So, am I misconfiguring anything? There is no bug to report then?
s
I am not sure what your config is, but the version of Compose compiler seems to be misconfigured
j
OK, I will double check.
Ok, I think I found it. thanks for the help