Safeargs library doesnt generate direction class

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

    In your app/module level add the following dependency :

        def nav_version = "2.3.0-alpha04"  //your nav_version defined 
    
        implementation "androidx.navigation:navigation-dynamic-features-fragment:$nav_version"
    

    all the answers are correct too. just felt that I should add this info. It worked for me

提交回复
热议问题