After adding the navigation compose dependency to my Kotlin Multiplatform project running the app on Android all is fine but when running on iOS, the app crashes at runtime with the following error:
Uncaught Kotlin exception: kotlin.native.internal.IrLinkageError: Function
'performRestore' can not be called: No function found for symbol
'androidx.savedstate/SavedStateRegistryController.performRestore|performRestore(androidx.core.bundle.Bundle?){}[0]'
I think it’s a version compatibility problem, this is my actual combination of versions:
[versions]
agp = "8.6.0"
android-compileSdk = "35"
android-minSdk = "24"
android-targetSdk = "35"
androidx-activity = "1.9.3"
androidx-appcompat = "1.7.1"
androidx-core = "1.17.0"
androidx-espresso = "3.7.0"
androidx-lifecycle = "2.8.4"
androidx-testExt = "1.3.0"
composeMultiplatform = "1.9.3"
junit = "4.13.2"
kotlin = "2.1.21"
material3 = "1.10.0-alpha05"
googleServices = "4.4.4"
gitliveFirebase = "1.13.0"
googleFirebase-common = "21.0.0"
googleFirebase-firestore = "25.0.0"
kotlinxSerializationJson = "1.7.3"
datastore ="1.1.1"
kotlinx-datetime = "0.7.1"
multiplatform-settings = "1.1.1"
navigationCompose = "2.8.0-alpha10"
I tried multiple combinations but still get the crash. like:
androidx-lifecycle = "2.8.4"
composeMultiplatform = "1.7.3"
kotlin = "2.1.21"
navigationCompose = "2.9.2"
Any advice for the best combination of versions?