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

后端 未结 2 1246
[愿得一人]
[愿得一人] 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:19

    Try with following method initialize google map api before using

    MapsInitializer.initialize(getActivity());
    
    0 讨论(0)
  • 2021-01-11 19:27

    Try this in "onCreate":

    try {
     MapsInitializer.initialize(this);
    } catch (GooglePlayServicesNotAvailableException e) {
     e.printStackTrace();
    }
    
    0 讨论(0)
提交回复
热议问题