getFromLocationName错误,无法提供服务。一直在努力,停止 [英] getFromLocationName error, Service not available. Have been working, stopped

查看:551
本文介绍了getFromLocationName错误,无法提供服务。一直在努力,停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序,我使用了getFromLocationName,它已在应用程序一直工作直到最近,突然我得到现在的一切服务不可用。

In my app I am using the getFromLocationName, and it has been working in the app until recently, now all of a sudden I am getting is "Service not available".

的异常说:地理coder.getFromLocationName(GEO coder.java:178)

The exception says: Geocoder.getFromLocationName(Geocoder.java:178)

这是在code我使用的:

This is the code I am using:

 Geocoder coder = new Geocoder(this);
 List<Address> address = null;
 try {
    address = coder.getFromLocationName(navAddr,5);
 } catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
 }

说实话,我不知道是否已经停止我已转后释放的构建工作。

To be honest I do not know if has stopped working after I have switched to release build.

我希望有人能指点我能做些什么来解决这个问题。

I hope someone can point me to what I can do to fix this.

推荐答案

我有excact同样的问题。我有两个应用程序也已经可以正常使用了一段时间,但停止工作至今。什么是奇怪的是,在三款手机它不工作(2.2,4.0和4.1),但在Android 2.1系统没有任何问题。

I have the excact same problem. I have two apps there has been working perfectly for a while, but stopped working today. What is weird is that in three phones it's not working (2.2, 4.0 and 4.1) but in android 2.1 there's no problem.

似乎有与谷歌地图地理codeR服务出了问题,而不是我们使用该服务。

There seems to be a problem with the Google Maps Geocoder service, and not our use of the service.

编辑: 我刚刚发现,你只需要重新启动手机。

I just found out that you just have to restart your phone.

这篇关于getFromLocationName错误,无法提供服务。一直在努力,停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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