Android Studio Can't resolve fragmentActivity and ViewPager imports

后端 未结 5 1636
野性不改
野性不改 2021-01-13 10:11

I follow the tutorial of developing swipe-able tabs. When I import:

import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;         


        
5条回答
  •  别那么骄傲
    2021-01-13 10:27

    To add the Android Support Library to an existing Android Project:

    Right click on your project Select Android Tools Select Add Support Library.

    Usually even after you add through SDK manager,you have to individually add in this process.This will set up the jar files needed.

提交回复
热议问题