I use navigation library and safeargs for passing data. I define argument to fragment like that.
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