java.lang.NullPointerException: CameraUpdateFactory is not initialized logcat exception

后端 未结 2 1271
[愿得一人]
[愿得一人] 2021-01-11 18:47

I\'m working with Google Maps. I am able to successfully create and can show a Google Map. Now I want to add CameraUpdate(latitude, longitude). I googled and I

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-11 19:27

    Try this in "onCreate":

    try {
     MapsInitializer.initialize(this);
    } catch (GooglePlayServicesNotAvailableException e) {
     e.printStackTrace();
    }
    

提交回复
热议问题