Safeargs library doesnt generate direction class

前端 未结 19 918
孤街浪徒
孤街浪徒 2021-02-01 11:44

I use navigation library and safeargs for passing data. I define argument to fragment like that.



        
相关标签:
19条回答
  • 2021-02-01 12:34

    In my case, the problem was that I was using the same fragment with the same id in 2 navigation graphs.

    Android Studio didn’t recognize the actions of one of the navigation graphs.

    So the solution for me was to change the id of one of the navigation graphs, rebuild, change again the id and rebuild again.

    After that everything worked again

    0 讨论(0)
提交回复
热议问题