I have been learning android navigation components from codelab, after following through steps, at step 8 I came across to a weird bug.
Steps to reproduce:
see following screenshots mainfragment settings Fragmentafter clicking settings fragment again
This is an issue issued in google issue tracker which was an internal bug for navigation aac, to fix add navigationVersion = "1.0.0-alpha02"
in your build.gradle
file