java.io.IOException: grpc failed|Android Kotlin 実践勉強会
以下の記事で、日本語の住所を緯度経度に変換する方法を紹介しました。
とても便利な機能ですが、稀に、「java.io.IOException: grpc failed」という例外が発生します。
原因は、ネットワークの問題に依存しています。通信環境が悪く、低速になっていたり、切断されると、「android.location.Geocoder#getFromLocationName」が例外を飛ばすのです。
Throws
IOException if the network i