https://kotlinlang.org logo
#compose
Title
# compose
s

Simone Summo

02/22/2021, 4:32 PM
I am trying to follow the Android Developer’s guide on Navigating with Compose but it suggest to use
navController.navigate("yourDirection")
to navigate from a composable to another and my version of
navigate
don’t provide the right implementation. I am using
androidx.navigation:navigation-compose:1.0.0-alpha06
1
They suggest to use version -alpha07, but I have a bug on it.
Duplicate class androidx.compose.runtime.savedinstancestate.ExperimentalRestorableStateHolder found in modules jetified-runtime-saveable-1.0.0-alpha12-runtime (androidx.compose.runtime:runtime-saveable:1.0.0-alpha12) and jetified-runtime-saved-instance-state-1.0.0-alpha11-runtime (androidx.compose.runtime:runtime-saved-instance-state:1.0.0-alpha11
and so on…
j

jaqxues

02/22/2021, 4:37 PM
Use compose alpha 12 with navigation-compose alpha 07
Also, navigate is an extension function, sou you have to import it I think
i

Ian Lake

02/22/2021, 6:29 PM
Yep, you have to import the extension function. Please star the existing issue on Android Studio: https://issuetracker.google.com/issues/172834438
2 Views