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

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


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


You can use dependencies as below in Project level bulild.gradle in Android Studio bumblebee

id 'androidx.navigation.safeargs' version '2.4.2' apply false

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

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