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
转载于:https://www.cnblogs.com/liwentao1091/p/5266577.html