IllegalStateException: Link does not have a NavController set

前端 未结 9 2232
故里飘歌
故里飘歌 2020-11-29 03:58

I\'m using Android Navigation Component for Navigation. I have a LoginFragment which has a button to transition to SignUpFragment. On clicking the button I\'m getting this e

9条回答
  •  时光取名叫无心
    2020-11-29 04:14

    i faced this issue just now, but i was sure about my code and then realized that i have changed the location of the fragment from under the main package to another folder

    so i solved the issue with Build-> clean then Build ->make project to let the IDE to change its Directions class

提交回复
热议问题