android.view.InflateException: Binary XML file : Error inflating class fragment

前端 未结 6 1222
刺人心
刺人心 2020-12-22 07:19

I am using GoogleMap in android app using Android Studio. It was working fine and don\'t know why suddenly it stopped working. minSdkVersion is 15

6条回答
  •  春和景丽
    2020-12-22 07:53

    If it crashes second time, you need to destroy it.

    public void onDestroy() {
        super.onDestroy();
        getFragmentManager().beginTransaction().remove(mapfragmentnamehere).commit();
    }
    

提交回复
热议问题