Remove the fragment in the activity xml that contains
android:name="androidx.navigation.fragment.NavHostFragment"
And if you still having the navgraph.xml, remove the startDestination property.
So then, select File -> Invalidate Caches/Restart -> Invalidate Cache & Restart
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…