Android Studio 3.2 canary build不会渲染Navigation标签

Raj*_*dka 8 android android-studio android-navigation android-architecture-components android-architecture-navigation

Android studio 3.2 canary 14没有渲染导航标签.它只是显示等待构建完成.

navigation_graph

<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">
    <fragment
        android:id="@+id/fragment_nav_host"
        android:name="androidx.navigation.fragment.NavHostFragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:defaultNavHost="true"
        app:navGraph="@navigation/navigation_graph" />
</navigation>
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

ir2*_*pid 2

你需要

  • 打开实验性功能“启用导航编辑器”

    在下面menu> android studio>preferences>experimental

  • 清理和重建项目 在此输入图像描述