‫Welcome back up in Android Studio.
‫Create a new project, Empty Views, activities and I'll name it as navigation.
‫App, and the first step is to add the dependency for the navigation component.
‫Let's go to Developer.android.com slash jetpack slash Android slash releases slash navigation, or you
‫can simply search for navigation dependency.
‫The latest stable release is 2.7.4 and select Kotlin.
‫And this is for Java language implementation.
‫This is for Kotlin implementation and this is for Jetpack Compose.
‫We'll start with the Java language implementation later on in the.
‫In this course when switching to Kotlin sections we're going to use this implementation.
‫So since our project is based on Java we're going to copy the dependency for the Java.
‫Go to Build.gradle.
‫And here paste the dependency.
‫We need to get the nav version.
‫And let's add it to here.
‫Click sync now and in this video I'm going to create the first step which is creating the navigation
‫graph.
‫A navigation graph is a resource file that contains all of your destinations and actions.
‫The graph represents all of your app's navigation paths, so click on resources folder, then create
‫a new Android resource directory.
‫And here I need to select navigation.
‫Click okay and you can see the navigation folder is created.
‫Inside this navigation folder I'll create navigation resource file and I'll name it as Navigation Graph.
‫Click okay and you can see it dot XML extension.
‫This is our navigation graph.
‫And you can see this is our navigation graph dot XML file.
‫You can go to split mode.
‫You can see the navigation tag and you can go to code.
‫But I prefer I prefer to use the design at first to define the destinations and link destinations together
‫with actions.