title: Geocoder.getFromLocation grpc failed on Android real device
body: <p>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 <code>java.io.IOException: grpc failed</code> in below line only on <strong>Android real device</strong>. It is working fine in <strong><em>emulators</em></strong>.</p>
  
  <pre><code>new Geocoder(context).getFromLocation(latLng.latitude, latLng.longitude, 1).get(0);
  </code></pre>
  
  <p>Also I have been calling this function using Asynctask which is suggested in another post <a href="https://stackoverflow.com/questions/45521579/geocoder-grpc-failed">Geocoder grpc failed</a> in stack overflow but nothing works for me.</p>
  
  <p>And I have restart the device as well but still it is failing.</p>
  
  <p>Help needed here. Thanks in advance.</p>
  
  <p><strong>Note</strong>: I tested in Google Pixel XL, Samsung S6 edge, Samsung S4. </p>