Safeargs library doesnt generate direction class

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

    I forgot to apply plugin in app.gradle file, just add this line

    apply plugin: "androidx.navigation.safeargs.kotlin"
    

    or this line if you are using java

    apply plugin: "androidx.navigation.safeargs"
    

提交回复
热议问题