导航体系结构组件-“新资源"对话框没有用于导航图的导航资源类型 [英] 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"
推荐答案
请确保您已选中设置->实验->启用导航编辑器.
导航编辑器是一项实验性功能,因此您必须首先 通过打开"IDE设置/首选项"对话框,选择它来启用它 在左侧窗格中进行实验,并选中启用旁边的框 导航编辑器.
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.
帮助-> Android的新功能(Android Studio 3.2 Beta 1)
Help -> What's New in Android (Android Studio 3.2 Beta 1)
然后,重新启动Android Studio
after that , restart Android Studio
这篇关于导航体系结构组件-“新资源"对话框没有用于导航图的导航资源类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!