Android layout 膨胀布局时出错

Android layout 膨胀布局时出错,android-layout,android-fragments,swiperefreshlayout,Android Layout,Android Fragments,Swiperefreshlayout,我试图在片段中使用以下代码实现swiperefreshlayout <android.support.v4.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/swipe_container" android:layout_width="match_parent" android:layout_hei

我试图在片段中使用以下代码实现swiperefreshlayout

    <android.support.v4.widget.SwipeRefreshLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/swipe_container"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

        <ListView
        android:id="@+id/recentList"
        android:layout_width="match_parent"
        android:layout_height="match_parent" 
        android:background="@color/grey" >
    </ListView>

</android.support.v4.widget.SwipeRefreshLayout>

对活动进行分级时,我会收到错误“错误膨胀类android.support.v4.widget.SwipeRfreshLayout”

我以前从未使用过此控件,尽管我目前正在使用v4支持库中的其他控件,但没有问题