Android Studio editor show Navigation Action not found

Viewed 51

Some some reason, one of the navigation direction defined in in one navigation xml is not being recognized in Android Studio editor (any others are just fine):

val action = SomeFragmentDirections.actionXXXFragment() // Unresolved reference in editor
findNavController().navigate(action) 

In the AS editor, it shows unresolved reference, but it is for sure in the navigation graph xml file and Gradle build, and the app run just fine.

Is there anything I need to concern about, or any way to get ride of the fake error if it is just one of the Android Studio thing?

0 Answers
Related