Error incompatible types: android.app.FragmentManager cannot be converted to android.support.v4.app.FragmentManager
Error Error incompatible types: android.app.FragmentManager cannot be converted to android.support.v4.app.FragmentManager is drving me nuts. In my app, I have 3 navigation drawer item, timesheet , claim and view , created in MainActivity. Now I wanted to add two tabs with swipe view in view item. MainActivity // for navigation drawer import android.app.Fragment; import android.app.FragmentManager; private void selectItem(int position) { Fragment fragment = null; switch (position) { case 0: fragment=new TimeSheet(); break; case 1: fragment=new Claims1(); break; case 2: fragment=new Viewview();