Safeargs library doesnt generate direction class

前端 未结 19 1392
孤街浪徒
孤街浪徒 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:29

    For me, I realized that I also needed to put the same arguments into the receiver fragment in navi_graph.xml as well in order for Arg class to be generated(already have directions). For example:

    
    
        
    
        
    
    
    

提交回复
热议问题