java.io.IOException: grpc failed
I can reproduce this issue (java.io.IOException: grpc failed), when there is no Internet connection on my real device.
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
May be you are having this issue in genymotion and android studio emulator only. I faced same issue with genymotion and android studio emulator and then i checked it in android real device. It's working good for me. Did you check it in real device?
I face this issue on Android 4.4.2 device several times. For me the solution is simply to restart the handset. No code update no Android studio uninstall.
This issue appeared for me (even though I make the request on a background thread), but in the Android Studio emulator only. A strange workaround that fixes it for me is to turn on and then turn off airplane mode!