Kevin Aude

    Kevin Aude

    1 year ago
    I’m a bit lost with navigation in compose, I based my code of the Owl example but seem to have miss something. Any help would be appreciated. Code in thread
    Here’s the error I get:
    java.lang.IllegalArgumentException: Navigation destination that matches request NavDeepLinkRequest{ uri=<android-app://androidx.navigation.compose/favorite_selection/15> } cannot be found in the navigation graph NavGraph(0x0) startDestination={Destination(0x900fda2)}
    Here’s the relevant nav graph definition:
    Vivek Sharma

    Vivek Sharma

    1 year ago
    you need to do something like this from
    MAIN_SCREEN
    composable :
    navController.navigate(routeOfNextScreen/arg)
    to navigate to your
    NEXT_SCREEN
    , where are you doing that ? the code seems fine
    Kevin Aude

    Kevin Aude

    1 year ago
    yep I am passing a lambda around to do that:
    Jorkoh

    Jorkoh

    1 year ago
    I think you are missing the brackets in the route
    Vivek Sharma

    Vivek Sharma

    1 year ago
    oh in your second composable in 1 photo, in your
    route
    you are doing this :
    "ROUTE/{id}"
    enclosing brackets are missing in
    id
    I was telling that too thanks @Jorkoh XD
    Kevin Aude

    Kevin Aude

    1 year ago
    aaah yeah indeed, good catch guys, thanks a lot!