Plugin with id 'androidx.navigation.safeargs' not found

Solution 1:

To add androidx.navigation.safeargsplugin follow below step's

  1. classpath "android.arch.navigation:navigation-safe-args-gradle-plugin:1.0.0-alpha09"
    (latest) Add above to your Project Gradel file inside dependency block

  2. Then add apply plugin: 'androidx.navigation.safeargs' to your app/Module gradle file

Solution 2:

Just add this line in your build.gradle project level :

 classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.2.0-rc02"

Solution 3:

Add

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

In your project-level dependencies

For eg :

dependencies {
       classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.1.0-alpha05"

}

Don't forget to add the latest version