Layout Android Studio在布局预览时崩溃

Layout Android Studio在布局预览时崩溃,layout,android-studio,Layout,Android Studio,最近才遇到这个问题。在web上找不到与此相关的任何内容。有人知道吗?加载布局预览时Studio崩溃。每次我试着看预览时都会发生这种情况。布局没有任何特殊之处,它由android设计支持标签组成。我很想知道出了什么问题。我使用的是API 23 布局文件: <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="h

最近才遇到这个问题。在web上找不到与此相关的任何内容。有人知道吗?加载布局预览时Studio崩溃。每次我试着看预览时都会发生这种情况。布局没有任何特殊之处,它由android设计支持标签组成。我很想知道出了什么问题。我使用的是API 23

布局文件:

<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/root_coordinator"
android:layout_width="match_parent"
android:layout_height="match_parent">

<android.support.design.widget.AppBarLayout
    android:id="@+id/app_bar_layout"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:fitsSystemWindows="true">

    <android.support.design.widget.CollapsingToolbarLayout
        android:id="@+id/collapsing_toolbar_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:fitsSystemWindows="true"
        android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
        app:contentScrim="?attr/colorPrimary"
        app:layout_scrollFlags="scroll|enterAlways">

        <android.support.v7.widget.Toolbar
            android:id="@+id/app_bar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            app:layout_collapseMode="pin"
            app:layout_scrollFlags="scroll|enterAlways"
            app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />

    </android.support.design.widget.CollapsingToolbarLayout>

    <android.support.design.widget.TabLayout
        android:id="@+id/tab_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:background="@color/colorAccent"
        app:layout_collapseMode="pin"
        app:tabIndicatorColor="@color/colorPrimary"
        app:tabMode="fixed"
        app:tabSelectedTextColor="@android:color/white"
        app:tabTextColor="#EEE" />

</android.support.design.widget.AppBarLayout>

<android.support.v4.view.ViewPager
    android:id="@+id/view_pager"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:layout_behavior="@string/appbar_scrolling_view_behavior" />


<android.support.design.widget.FloatingActionButton
    android:id="@+id/fab"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="bottom|right"
    android:layout_margin="16dp"
    android:src="@drawable/calendar_white"
    app:borderWidth="0dp"
    app:fabSize="normal" />
</android.support.design.widget.CoordinatorLayout>


我也有同样的问题。你找到解决方案了吗?我更新了我的Android sdk组件,之后就没有出现问题了。为什么会出现这个问题?我也面临同样的问题,没有用!