Search code examples
androidnavigationandroid-architecture-componentsgoogleioandroid-architecture-navigation

Navigation Architecture Component - New Resource dialog doesn't have Navigation resource type for navigation graph


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"

enter image description here


Solution

  • Make sure that you checked the box Settings -> Experimental -> Enable Navigation Editor.

    The Navigation Editor is an experimental feature, so you must first enable it by opening the IDE Settings/Preferences dialog, selecting Experimental in the left pane, and checking the box next to Enable Navigation Editor.

    Help -> What's New in Android (Android Studio 3.2 Beta 1)

    after that , restart Android Studio