Alix Blaine
Alix Blaine

Reputation: 831

None of the following functions can be called with the arguments supplied

I am trying to use this, but does not work. Not sure of why.

androidx.navigation.compose.NavHost(
        navHostController = navHostController,
        route = Graph.ROOT,
        startDestination = Graph.HOME
    ){

    }

I get the following error(s):

None of the following functions can be called with the arguments supplied.

Upvotes: 1

Views: 451

Answers (1)

Gabriele Mariotti
Gabriele Mariotti

Reputation: 364928

There is a typo with navHostController. The parameter is navController

 androidx.navigation.compose.NavHost(
        navController = navHostController,
        //...
  )

Upvotes: 1

Related Questions