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
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'