I get this error when make two changes first, add the following dependency in my build.gradle file
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$version_kotlin"
classpath "android.arch.navigation:navigation-safe-args-gradle-plugin:$navigationVersion"
Second add the line to my build.gradle(module) file
apply plugin: 'androidx.navigation.safeargs'