onConnectionFailed: ConnectionResult.getErrorCode() = 4

前端 未结 3 709
迷失自我
迷失自我 2021-01-02 21:19

Here i am doing google + integartion.i am using the following code but i am facing the error which is : onConnectionFailed: ConnectionResult.getErrorCode() = 4.So please any

3条回答
  •  时光取名叫无心
    2021-01-02 21:52

    In case you are using MapView, make sure you are following the guidelines i.e.

    "When using the API in fully interactive mode, users of this class must forward all the activity life cycle methods to the corresponding methods in the MapView class. Examples of the life cycle methods include onCreate(), onDestroy(), onResume(), and onPause(). When using the API in lite mode, forwarding lifecycle events is optional. For details, see the lite mode documentation."

    @Override
    public void onResume() {
        mapView.onResume();
        super.onResume();
    }
    
    @Override
    public void onDestroy() {
        super.onDestroy();
        mapView.onDestroy();
    }
    
    @Override
    public void onLowMemory() {
      super.onLowMemory();
      mapView.onLowMemory();
    }
    

提交回复
热议问题