java.io.IOException: grpc failed
问题 When I use call getFromLocationName I get an IOException with description "grpc failed". Code that's ran @Override public void onMapReady(GoogleMap googleMap) { mMap = googleMap; try { Geocoder geocoder = new Geocoder(getApplicationContext(), Locale.getDefault()); List<Address> listAdresses = geocoder.getFromLocationName("London", 10); Log.i("PlaceInfo", listAdresses.get(0).toString()); } catch (IOException e) { e.printStackTrace(); } } Error the console outputs: 07-10 12:01:38.781 13712