I want to create a swipe to refresh layout but this exeption is raised. Exception details are logged in Window > Show View > Error Log The following classes could not be found: - android.support.v4.widget.SwipeRefreshLayout (Fix Build Path, Edit XML, Create Class)
<?xml version="1.0" encoding="utf-8"?>
<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">
<ScrollView android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView android:text="swipe"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:gravity="center"/>
</ScrollView>
</android.support.v4.widget.SwipeRefreshLayout>