java.io.IOException: grpc failed

前端 未结 24 1011
野性不改
野性不改 2020-12-02 20:00

When I use call getFromLocationName I get an IOException with description \"grpc failed\".

Code that\'s ran

@Override
public void onMapReady(GoogleMa         


        
24条回答
  •  北海茫月
    2020-12-02 20:39

    Like Google writes, You should not call this method on UI thread

    https://developer.android.com/training/location/display-address#java

    I fixed this issue by running this operation in a new Thread, and then if I need to update some UI view I'll do it on runOnUiThread

提交回复
热议问题