Home > database >  Plugin with id 'androidx.navigation.safeargs' not found in new version android
Plugin with id 'androidx.navigation.safeargs' not found in new version android

Time:03-10

I'm going to https://developer.android.com/jetpack/androidx/releases/navigation but I get an error when syncing the id 'androidx.navigation.safeargs' plugin which you can see in the image below

image build.gradle(moduleApp)

image builde.gradle(project)

image My dependencies

image My error

CodePudding user response:

To fix this error, add the following code to build.gradle (project) and sync the project

buildscript {

    dependencies {
        classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.4.1") 
    }
}

Next add this code to build.gradle(module)

id 'androidx.navigation.safeargs'
  • Related