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

When I try to add Safe Args (Android Navigation) to my app's as following

( using this guide : https://developer.android.com/topic/libraries/architecture/navigation/navigation-pass-data ) :

apply plugin: 'com.android.application'
apply plugin: 'androidx.navigation.safeargs'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.google.gms.google-services'

android {...

I receive this error :

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



Solution 1:[1]

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

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

Solution 2:[2]

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

Solution 3:[3]

In newer version of Android Studio 3.2+, below dependency need to add in both build.gradle file

Project-Level build.gradle

dependencies {
    classpath 'androidx.navigation:navigation-safe-args-gradle-plugin:2.3.5'
}

App-Level build.gradle

plugins {
    id 'androidx.navigation.safeargs' 
}

Solution 4:[4]

It appears because you are declaring it in the wrong build.gradle file. You have to place it in the build.gradle that looks like this

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

This link explain how it is added https://developer.android.com/jetpack/androidx/releases/navigation#safe_args

Solution 5:[5]

as per this https://developer.android.com/jetpack/androidx/releases/navigation

Add above to your Project Gradel file inside dependency block

`classpath "android.arch.navigation:navigation-safe-args-gradle-plugin:2.2.1`

then add apply plugin: androidx.navigation.safeargs to your app/Module gradle file

Solution 6:[6]

I had to add it to the top level build.gradle, not sure if you've just added it to your app level build.gradle instead

Solution 7:[7]

Due to Tailwind's just in time mode, only the necessary code is generated to keep your project as small as possible.

Is tailwind working correct?

Solution 8:[8]

So that is due to the latest version of the tailwind CSS V3. The JIT is enabled by default and it will only render the respective styles being used in the files mentioned in your config. That is perfectly an expected behavior, this can give you a good lead. https://youtu.be/mSC6GwizOag

Also you are using the --watch flag that will do the same.

Kindly try upgrading to the latest version of tailwindcss.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sana Ebadi
Solution 2 Shalu T D
Solution 3 Pratik Dodiya
Solution 4
Solution 5 Abednego
Solution 6 George Yang
Solution 7 Dominik Thurau
Solution 8 SARAN SURYA