java.io.IOException: grpc failed
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!
I can reproduce this issue (java.io.IOException: grpc failed), when there is no Internet connection on my real device.
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?
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