The Navigation Component Tutorial in Android Studio (Kotlin)
Channel: Indently
Date: 2020-08-28

In 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"
················    
  ​​​​