New Resource dialog doesn't have Navigation resource type for navigation graph even after adding Navigation Architecture Component dependencies
def nav_version = '1.0.0-alpha01'
implementation "android.arch.navigation:navigation-fragment:$nav_version"
implementation "android.arch.navigation:navigation-ui:$nav_version"
Make sure that you checked the box Settings -> Experimental -> Enable Navigation Editor.
after that , restart Android Studio
It works in Android Studio 3.2 which is in Canary at the time of writing.
https://android-developers.googleblog.com/2018/05/google-io-2018-whats-new-in-android.html
I have faced same issue when I create new resource file as Navigation Type .
The navigation editor tool is only available in Android Studio 3.2 Canary.
I tried to enable Navigation editor manually: File → Settings → Experimental → Enable Navigation Editor
Still the Navigation option does not appear in the selection menu.
It will appear after I restarted android studio.
I was using Android Studio 3.2.1 but it would not load the navigation editor. Complained about not being able to install the navigation fragment dependency. Only after I invalidated Android Studio's cache and restarted did it work.
I don't know why it's not showing up for me either but there is a workaround.
Right click on
res
--> selectAndroid Resource Directory
--> selectResource type
asnavigation
click ok --> select the newly creatednavigation
directory --> right clickFile
and put in the namenav_graph.xml
--> once the file opens paste this code: