``` Shortly: The required symbol androidx.compose....
# compose-ios
i
Copy code
Shortly: The required symbol androidx.compose.runtime/remember|-2596345568877061727[0] is missing in the module or module dependencies. This could happen if the required dependency is missing in the project. Or if there is a dependency that has a different version (without the required symbol) in the project than the version (with the required symbol) that the module was initially compiled with.
How I can find out which dependenics?
l
Usually that means you need to set kotlin.native.cachekind=none in gradle.properties
i
let me check on it
didn't work
p
Apparently
remember
is missing, did you add the plugin right, or the compose runtime dependency. Do a cleanup and/or invalidate caches and see what happens
i
Copy code
api(compose.runtime)
                api(compose.foundation)
                @OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
                api(compose.material3)
                @OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
                api(compose.components.resources)
i tried, it didn't work
p
Humm, no clue 🤔
Are you on 1.4.0 or greater? I remember seeing those symbols errors before 1.4.0 due to exposing Composables public. Still in 1.4.0 there is a case where public var Composables has a problem to generate the symbol in iOS. But I don't think this is the case either.
i
I am using compose mulitplatform 1.4.0
p
No idea what could be it.
h
Check you dependencies and their compose versions. IR/klib isn’t stable yet.
o
Does the template https://github.com/JetBrains/compose-multiplatform-ios-android-template work for you? Just a guess: There is an android target and Jetpack Compose compiler plugin is used in some of the modules (it could be if you're porting your android app to MPP). Solution: Compose Multiplatform compiler plugin should be used in all modules for all targets. Also what Philip mentioned above could be a reason for such an error - you have a dependency which depends on an older compose runtime. Solution: update that dependency version. It's tricky to find it out, unfortunately :(
i
I started to port it over to that one.
@Oleksandr Karpovich [JB] your code just work fine. o.O
209 Views