YASAN
11/25/2021, 4:20 PMnavigation-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:
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)
ModalBottomSheetLayout(bottomSheetNavigator) {
AnimatedNavHost(
navController = navController,
startDestination = startDestination,
enterTransition = { _, _ ->
fadeIn()
},
popEnterTransition = { _, _ ->
fadeIn()
},
exitTransition = { _, _ ->
fadeOut()
},
popExitTransition = { _, _ ->
fadeOut()
},
)
Adam Powell
11/25/2021, 4:26 PMnavigation-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.ktYASAN
11/25/2021, 4:29 PM