I follow the tutorial of developing swipe-able tabs. When I import:
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;
Add the support library to the dependencies section. For example, to add the v4 support library, add the following lines:
dependencies { ... compile "com.android.support:support-v4:18.0.+" }