Geocoder错误java.io.IOException:无法解析服务器的响应 [英] Geocoder error java.io.IOException: Unable to parse response from server

查看:142
本文介绍了Geocoder错误java.io.IOException:无法解析服务器的响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

异常:

java.io.IOException:无法解析服务器的响应

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

我在做什么错了?

推荐答案

当GPS处于非活动状态时,会出现这种错误.由于仿真器没有GPS硬件,因此可能引发类似异常.不能肯定地说,除非您发布有关该问题的更多详细信息.

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.

这篇关于Geocoder错误java.io.IOException:无法解析服务器的响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆