Safeargs library doesnt generate direction class

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

    the problem may be with your apply plugin thing please check if you are using java then add:

    apply plugin: "androidx.navigation.safeargs"
    

    and for kotlin use this:

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

提交回复
热议问题