My Home fragment is visible in the compiler but on launch the main activity is blank. What am I missing?

Viewed 19
1 Answers

You have given nav_graph id in xml code but the file name is res/navigation/navgraph.xml Make navgraph and nav_graph both same. Then it should work

<navigation .. android:id="@+id/nav_graph" ... >

Make navgraph and nav_graph both same. Then it should work

Related