Hello :wave: Would anyone be able to help me with the problem I encounter while updating kotlin into...
p
Hello 👋 Would anyone be able to help me with the problem I encounter while updating kotlin into version 2.0.0 and compose multiplatform into 1.6.7. Android app works fine but the problem is in iOS build. Down below you can see the error I receive. It's strange because I'm not using compose compiler plugin in v1.5.12. I declared
org.jetbrains.kotlin.plugin.compose
with kotlin version so I suppose that should be all, but probably I missed something... I don't really understand where i should declare runtime for iOS? Has anyone had this problem before?
a
Hi, did you apply the compose plugin in the module?
p
yes, I declared org.jetbrains.compose in every compose module
a
Copy code
[plugins]
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
jetbrains-compose = { id = "org.jetbrains.compose", version.ref = "compose-plugin" }
jetbrains-compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
you need these 3 plugins applied, the error you have means the compose compiler plugin has not been applied properly
👍 1
p
I've declared all these plugins, but maybe not in every module.. I will check
it should be in every module?
a
well it depends, if you are using compose code in a module yes
👍 1
Here is the setup I have, i have applied these settings in the composeApp Module
👍 1
and for the shared module
👍 1
p
ok, thanks for the tips, I will try to handle this 🙂
which dependency hides behind
compose.runtime
in your project?
a
compose runtime from jetbrains-compose = { id = "org.jetbrains.compose", version.ref = "compose-plugin" }
👍 1
p
unfortunately I've got the same error;/
a
Hi,
I ran into the same error you did when doing some config testing
if you have this block
image.png
remove it
and the project will launch
very weird bug
as this should not cause any problems
p
I receive the same error after removing this block 😕 Maybe this is some weird generic error for different type of strange configuration issues