udacity / andfun-kotlin-android-trivia

Other
196 stars 481 forks source link

Can't use safe args #20

Closed falconj-code closed 2 years ago

falconj-code commented 4 years ago

After adding safe-args dependency and plugins, there are no generated class. GameFragmentDirections doesn't show up.

When I type below code in GameFragment Kotlin file, an error shows up at GameFragmentDirections. The error says unresolved references (screenshot as below)

safe args issue

sorianog commented 4 years ago

@justinranger24 Make sure to Rebuild Project after adding the new dependencies. Update the versions in your Project gradle file as well if needed.

falconj-code commented 4 years ago

@sorianog It works after click Rebuild Project! Thanks a lot. I only clicked clean project and stuck in this for quite some time...