Unresolved Reference: CrimeListFragmentDirections

I ended up figuring this out, but just in case anyone else has the same problem. The method for adding the Safe Args plugin has changed since the book was published. See: Pass Data Between Destinations | Android Developers
In the Project level build.gradle.kts add:


buildscript {
    repositories {
        google()
    }
    dependencies {
        val nav_version = "2.7.7"
        classpath("androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version")
    }
}

and then in the Module:app build.gradle.kts add:

plugins {
    id("androidx.navigation.safeargs.kotlin")
}

then Android Studio should be able to resolve the class name properly.