Google Maps Fragment returning null inside a fragment

前端 未结 8 920
花落未央
花落未央 2020-11-27 18:05

So I have an empty fragment that contains a map fragment. Whenever I try to activate the fragment containing the map, my app crashes and returns a null pointer error on this

8条回答
  •  误落风尘
    2020-11-27 18:30

    Could this be an issue of migrating to a target sdk version of 21? If so, the following solution may be of interest to you:

    MapFragment or MapView getMap() returns null on Lollipop

提交回复
热议问题