https://kotlinlang.org logo
#compose
Title
# compose
e

Eric Ampire [MOD]

02/25/2021, 9:52 AM
Hello, when I tried to use Scaffold, I have gotten this error message, I can’t understand why.
j

jaqxues

02/25/2021, 9:56 AM
NavHost does not give you a Composable context (you need to define a graph with the
composable("route") { ... }
Function Also, you should move your navhost inside the contents of the scaffold
k

Kevin Aude

02/25/2021, 9:56 AM
have you tried wrapping your scaffold inside
Copy code
composable("home") {}
e

Eric Ampire [MOD]

02/25/2021, 9:58 AM
After moving g the navhost inside the contents of scaffold, everything work as excepted thanks
s

sindrenm

02/25/2021, 5:20 PM
That said, it would be nice to get that “could not render error message” error fixed, too. 😅
8 Views