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

前端 未结 6 1180
刺人心
刺人心 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 08:06

    Please use getMapAsync.

    SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()
                .findFragmentById(R.id.map);
        mapFragment.getMapAsync(this)
    

提交回复
热议问题