Need help. Hello guys, I’m trying to make jetpack-...
# multiplatform
l
Need help. Hello guys, I’m trying to make jetpack-compose work on kotlin/native, so far so good. But when I successfully configured gradle to pass
-xplugin
arguments to konanc, the compiler complains:
Copy code
Caused by: java.lang.AbstractMethodError: Receiver class androidx.compose.compiler.plugins.kotlin.ComposeComponentRegistrar does not define or inherit an implementation of the resolved method 'abstract void registerProjectComponents(com.intellij.mock.MockProject, org.jetbrains.kotlin.config.CompilerConfiguration)' of interface org.jetbrains.kotlin.compiler.plugin.ComponentRegistrar.
        at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$Companion.registerExtensionsFromPlugins$cli(KotlinCoreEnvironment.kt:610)
Strange thing is that the compiler plugin indeed implemented that method, and the compiler plugin is compiled against
org.jetbrains.kotlin:kotlin-compiler:1.5.31
, also my konanc version is 1.5.31. Any one have a clue? Thanks😃 PS: my fork of androidx is here: https://github.com/LanderlYoung/androidx the ComposeComponentRegistrar class is here: https://github.com/LanderlYoung/androidx/blob/d99c6ef82e67997b71b449840a8147f62f95[…]/java/androidx/compose/compiler/plugins/kotlin/ComposePlugin.kt