Fragmentdirections Was Not Generate By Safe Args Plugin
When I trying to use Safe Args plugin to jump from one fragment to another, the compiler shows 'Unresolved reference: VideoFragmentDirections'. I have already set the classpath and
Solution 1:
try
apply plugin: "androidx.navigation.safeargs.kotlin"
in app build.gradle
Solution 2:
Make sure to Rebuild Project after adding the new dependencies. Update the versions in your Project gradle file as well if needed.
This works fine.
Solution 3:
// Project level build.gradle
buildscript {
repositories {
google()
}
dependencies {
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version") //add here.
}
}
// Module level build.gradle.
plugins {
id'androidx.navigation.safeargs'// add here.
}
I wish your happy day🙏
Post a Comment for "Fragmentdirections Was Not Generate By Safe Args Plugin"