java.lang.ClassCastException cannot be cast to android.app.Fragment

后端 未结 2 1089
无人共我
无人共我 2021-01-26 05:40

I have MainActivity class which have method which instantiate ApplicationBar, all other Activities are inherited form this MainActivity so they can use this method.

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-26 06:31

    If you are using com.google.android.gms.maps.SupportMapFragment your activity must extends android.support.v4.app.FragmentActivity instead of android.app.Activity

提交回复
热议问题