but I get the compiler error "Type mismatch: inferred type is List<androidx.navigation.NamedNavArgument> but List<androidx.navigation.compose.NamedNavArgument> was expected". Does anyone know how to fix this (other than going back to regular
NavHost
, which works)?
a
Albert Chang
09/25/2021, 8:56 AM
Accompanist is not yet compatible with Androidx Navigation 2.4.0-alpha09. You need to use 2.4.0-alpha08 for now.
r
Rick Regan
09/25/2021, 1:46 PM
Thanks, that works.
I do not see that in the usual places I look for release notes -- do you know where that is noted (so I can upgrade at the appropriate time)?
. This will require updating imports to continue to use this function.
r
Rick Regan
09/25/2021, 1:55 PM
Thanks. (I'm still new enough at this that I did not correlate that with a specific release.)
c
Colton Idle
09/27/2021, 2:43 AM
hm. pretty sure I'm using accompnist 0.17 and nav alpha09 without issues. I'll look into whether I should downgrade. 😅
a
Albert Chang
09/27/2021, 2:48 AM
If there's no problem you don't need to bother. The incompatibility only happens when you are using navigation-animation or navigation-material with custom nav arguments.