机器人产生java.io.IOException:服务不可用不可用、机器人、io、java

2023-09-12 09:34:46 作者:暗淡の青春

说明:我使用谷歌地图API V2 。我已经实施 Android的反向地理编码的感动位置。的

Description: I am using Google maps API V2.I have implemented Android Reverse Geocoding at touched location.

问题:它在抛出异常

 try {
     addresses = geocoder.getFromLocation(latitude, longitude,1);}
 catch (IOException e)
     {
     e.printStackTrace();
     if(AppConstants.DEBUG)Log.v(AppConstants.DEBUG_TAG," e.printStackTrace(): "+e.getMessage());
     }

我收到纬度经度值正确的,但我不明白为什么它会抛出除了,我也做了谷歌搜索,但它不能帮助。

I am receiving latitude and longitude values correct, but i can't understand why it throws exception and i have also done Google search but it couldn't help.

任何人都可以请详细解释一下?

Can anybody please explain in details??

推荐答案

正如在此的 Android的问题38009 - 地理codeR引发异常:IOException异常:服务不可用 重启设备将解决这个问题

 
精彩推荐
图片推荐