I follow the tutorial of developing swipe-able tabs. When I import:
import android.support.v4.app.FragmentActivity;
import android.support.v4.view.ViewPager;
I have solved it. I installed everything but I did not import the external library into my library. It was not installed automatically during creation of the new project. So I just opened the project structure and imported the dependencies -> add support-v4 library.
Btw, thanks you guys for helping me a lot and posting the suggestion to me.