Error: required: android:support.v4.FragmentManager, found: android.app.FragmentManager

前端 未结 4 524
无人及你
无人及你 2021-01-22 12:47
 FragmentManager manager = getFragmentManager();

It is giving the error

required : android:support.v4.FragmentManager
foun

4条回答
  •  情歌与酒
    2021-01-22 13:50

    change the import of Fragment Activity below

     import android.support.app.FragmentActivity;
    

    to

     import android.support.v4.app.FragmentActivity;
    

提交回复
热议问题