java.io.IOException: grpc failed

前端 未结 24 1107
野性不改
野性不改 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:55

    after some research figure out how to solve this , in my case all ways like put code in new Thread or use GeocodingApi not work , i just make sure

    play-services-base
    

    and

    play-services-location
    

    have same version like below :

    implementation 'com.google.android.gms:play-services-base:17.1.0'
    
    implementation 'com.google.android.gms:play-services-location:17.1.0'
    

提交回复
热议问题