Geocoder error java.io.IOException: Unable to parse response from server

谁说我不能喝 提交于 2019-12-21 04:13:37

问题


Code:

Geocoder geocoder = new Geocoder(map.this,Locale.getDefault());
List<Address> list = geocoder.getFromLocation(geoLat, geoLng, 1);

Exception:

java.io.IOException: Unable to parse response from server

What am I doing wrong?


回答1:


This kind of error shows up when the GPS is not active. Since the emulator doesnt have a GPS hardware, similar exception can be thrown. Cant say for sure unless you post more detail about the problem.



来源:https://stackoverflow.com/questions/6754817/geocoder-error-java-io-ioexception-unable-to-parse-response-from-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!