I keep getting an "Unresolved Reference" error for...
# android
s
I keep getting an "Unresolved Reference" error for NavDirections when I merge someone else's branch into mine. I don't see anything in the Gradle files that would cause this.
i
What version of Studio are you using? If you're not on the latest Studio 4.2 Canary (i.e., using 4.1), you'll need to build your project to generate those classes
It is only Studio 4.2 Canary 9 and higher that use the same techniques as View Binding and Data Binding to generate 'light classes' (fake implementations that Studio uses to resolve references immediately without needing you to rebuild your project): https://developer.android.com/studio/preview/features#safe-args