I am having issue with the new Android Navigation Architecture component when I try to navigate from one Fragment to another.
I get this error:
java.lang.IllegalArgumentException: navigation destination XXX
is unknown to this NavController
Every other navigation works fine except this particular one.
I use findNavController() function of Fragment to get access to the NavController. How to solve the error?
Any help will be appreciated.