I have been unable to update my `navigation-compos...
# compose
y
I have been unable to update my 
navigation-compose
 past 
2.4.0-alpha10
. All versions after that crash for me and the log isn't clear.
2.4.0-beta02
throws this:
Copy code
java.lang.ClassCastException: java.util.LinkedHashSet cannot be cast to java.util.List
        at com.google.accompanist.navigation.animation.AnimatedNavHostKt.AnimatedNavHost$lambda-3(AnimatedNavHost.kt:388)
        at com.google.accompanist.navigation.animation.AnimatedNavHostKt.AnimatedNavHost(AnimatedNavHost.kt:165)
        at com.google.accompanist.navigation.animation.AnimatedNavHostKt.AnimatedNavHost(AnimatedNavHost.kt:91)
        at yasan.space.mnml.ai.launcher.ui.navigation.NavGraphKt$NavGraph$1.invoke(NavGraph.kt:76)
        at yasan.space.mnml.ai.launcher.ui.navigation.NavGraphKt$NavGraph$1.invoke(NavGraph.kt:75)
NavGraph.kt:75-76 are the first two lines of this:
Copy code
ModalBottomSheetLayout(bottomSheetNavigator) {
    AnimatedNavHost(
        navController = navController,
        startDestination = startDestination,
        enterTransition = { _, _ ->
            fadeIn()
        },
        popEnterTransition = { _, _ ->
            fadeIn()
        },
        exitTransition = { _, _ ->
            fadeOut()
        },
        popExitTransition = { _, _ ->
            fadeOut()
        },
    )
a
looks like you probably need to update accompanist alongside the
navigation-compose
artifact; that file in accompanist doesn't even have a line 388 anymore 🙂 https://github.com/google/accompanist/blob/main/navigation-animation/src/main/java/com/google/accompanist/navigation/animation/AnimatedNavHost.kt
👀 1
🙌 1
y
Uh, I just updated to 0.20.2 from 0.20.0. Ill try it again now thanks. AS didnt show me any updates so I thought there arent any.
Worked! Thanks 😄
👍 1