Could not find androidx.navigation:safe-args-gradle-plugin:1.0.0-alpha01

Try to add

classpath "android.arch.navigation:navigation-safe-args-gradle-plugin:1.0.0-alpha01" 

instead of

classpath "androidx.navigation:safe-args-gradle-plugin:1.0.0-alpha01"

Now you can use the following classpath in order to use safe-args with AndroidX

classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.1.0-alpha02"

For more details you can check here


Accepted answer didn't work for me. But when I used alpha 5 it worked

Project build.gradle:

classpath "android.arch.navigation:navigation-safe-args-gradle-plugin:1.0.0-alpha05"