I'm trying to use org.jetbrains.androidx.navigatio...
# multiplatform
s
I'm trying to use org.jetbrains.androidx.navigation:navigation-compose but it fails to compile for ios. Anyone knows how to fix it? "_kfun:androidx.lifecycle.viewmodel.compose#androidx_lifecycle_viewmodel_compose_LocalViewModelStoreOwner$stableprop_getter$artificial(){}kotlin.Int", referenced from: _kfun:com.nice.app.ComposeApp$1.ComposeApp$1$invoke$2.ComposeApp$1$invoke$2$invoke$$inlined$cache$1.ComposeApp$1$invoke$2$invoke$$inlined$cache$1$invoke$1.invoke#internal in ComposeApp[2](ComposeApp.framework.o)
p
Seems to me you have to use the corresponding lifecycle and ViewModel versions. Potentially check that the compose version is ok too and even the Kotlin version
s
damn
🤷 1
I can't just use the latest version?
p
I don't think so. It might depend on other libraries and you need to provide the right updated versions of those dependencies.
s
I'm using the same navigation version as the sample here, still the same error https://github.com/JetBrains/compose-multiplatform/tree/master/examples/nav_cupcake
ok i'll try to match all the versions in the sample
👍 1
downgraded and it compiles now
Copy code
navigationCompose = "2.7.0-alpha06"
doesn't work with latest beta. 🫠
😢 1