Safeargs library doesnt generate direction class

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

    I followed all instructions to the letter and noticed the Directions classes were being generated, but would not compile when called in code. This happened while using Android Studio 4.1 and 4.2 Preview.

    After a few hours, I decided to try downgrading to 4.0 Stable. All issues are now gone, I can call the FragmentDirections and it compiles.

    I added a bug in the issue tracker: https://issuetracker.google.com/issues/158777967

提交回复
热议问题