Geocoder.getFromLocation grpc failed on Android real device
问题 I need to get the city and state from latitude and longitude. Geocoder does this function to get the city and state. But I am getting an error java.io.IOException: grpc failed in below line only on Android real device . It is working fine in emulators . new Geocoder(context).getFromLocation(latLng.latitude, latLng.longitude, 1).get(0); Also I have been calling this function using Asynctask which is suggested in another post Geocoder grpc failed in stack overflow but nothing works for me. And