cannot be cast to android.support.v4.app.Fragment
android.app.Fragment
as stated in the imports. Change the import to
android.support.v4.app.Fragment
android.app.Fragment
as stated in the imports. Change the import to
android.support.v4.app.Fragment