n this video I’ll be showing you the basics on how to use this navigation component You can copy the dependencies down below:
················
//navigation plugin
apply plugin: “androidx.navigation.safeargs.kotlin”
················
// Add compile options
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
················
// Dependency
def nav_version = “2.3.0”
················
// Navigation Components
implementation “androidx.navigation:navigation-fragment-ktx:$nav_version”
implementation “androidx.navigation:navigation-ui-ktx:$nav_version”
················
// add this for safe-args
def nav_version = “2.3.0”
classpath “androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version”
················
#code #visual studio code #java #visual studio