“IBitmapDescriptorFactory is not initialized” error

后端 未结 7 804
小鲜肉
小鲜肉 2021-01-31 13:52

I\'m trying to get a marker with an custom icon in Google Maps Android API v2. I just changed one of the examples Google provides. I added .icon(BitmapDescriptorFactory.fr

7条回答
  •  猫巷女王i
    2021-01-31 14:12

      GoogleApiAvailability googleApiAvailability=GoogleApiAvailability.getInstance();
    
      int status=googleApiAvailability.isGooglePlayServicesAvailable(getActivity());
    
    
    
      if (status != ConnectionResult.SUCCESS) {
            int requestCode = 10;
            Dialog dialog = googleApiAvailability.getErrorDialog(getActivity(),status,requestCode);
            dialog.show();
        }else {}
    

提交回复
热议问题