I got this error: ERROR/MapActivity(258): Couldn't get connection factory client
我收到此错误:ERROR / MapActivity(258):无法获取连接工厂客户端
Everything worked fine, it's all of a sudden, how come that happens? I know my api key is fine, because one month I've been using it perfectly. How come all of a sudden it doesn't show me the map activity, and posts that error in the logcat?
一切都很好,突然之间,怎么会发生这种情况?我知道我的api键很好,因为一个月我一直在使用它。怎么突然它没有向我展示地图活动,并在logcat中发布错误?
4 个解决方案
#1
15
I'm getting the same problem when using getFromLocationName, with a 'java.io.IOException:Service not Available' error.
使用getFromLocationName时出现同样的问题,并出现'java.io.IOException:Service not Available'错误。
I've done a bit of googling around and it seems this is a bug in the software.
我已经做了一些谷歌搜索,似乎这是软件中的一个错误。
http://code.google.com/p/android/issues/detail?id=8816
http://code.google.com/p/android/issues/detail?id=8816
#2
16
I had reinstalled Android dev kit on my new system and the debug.keystore had changed. Once I used the keytool to make a new MD5 and registered that with Google I was back in action with a fresh apiKey.
我在我的新系统上重新安装了Android开发工具包,并且debug.keystore已经更改。一旦我使用keytool制作一个新的MD5并在Google上注册了这个,我就用新的apiKey回来了。
"Couldn't get connection factory client" is a weird message for an invalid apiKey !
“无法获取连接工厂客户端”是一个无效apiKey的奇怪消息!
#3
2
I had the same problem with API level 8 on both emulator and a physical device (2.2) Actually, for me it never worked. Then by chance I tried on emulator API level 10 (with Google API of course), and it worked just fine.
我在模拟器和物理设备(2.2)上遇到了与API级别8相同的问题。实际上,对我来说它从来没有奏效。然后我偶然尝试了模拟器API级别10(当然使用Google API),它运行得很好。
(Before that, I got a new MD5 with the keytool in order to register for a new apikey. However, I got exactly the same as the first time! Maybe I didn't use the keytool correctly.)
(在此之前,我使用keytool获得了一个新的MD5,以便注册一个新的apikey。但是,我和第一次完全一样!也许我没有正确使用keytool。)
#4
0
I had this error but nothing useful in the Logcat output to determine the AV.
我有这个错误,但在Logcat输出中没有任何用处来确定AV。
I simply cleaned my project in Eclipse and then I got a proper stack trace of the problem, which was nothing related to MapView. It was just that the MapView was based in the first activity visible.
我只是在Eclipse中清理了我的项目,然后我得到了一个问题的正确堆栈跟踪,这与MapView无关。只是MapView基于可见的第一个活动。
#1
15
I'm getting the same problem when using getFromLocationName, with a 'java.io.IOException:Service not Available' error.
使用getFromLocationName时出现同样的问题,并出现'java.io.IOException:Service not Available'错误。
I've done a bit of googling around and it seems this is a bug in the software.
我已经做了一些谷歌搜索,似乎这是软件中的一个错误。
http://code.google.com/p/android/issues/detail?id=8816
http://code.google.com/p/android/issues/detail?id=8816
#2
16
I had reinstalled Android dev kit on my new system and the debug.keystore had changed. Once I used the keytool to make a new MD5 and registered that with Google I was back in action with a fresh apiKey.
我在我的新系统上重新安装了Android开发工具包,并且debug.keystore已经更改。一旦我使用keytool制作一个新的MD5并在Google上注册了这个,我就用新的apiKey回来了。
"Couldn't get connection factory client" is a weird message for an invalid apiKey !
“无法获取连接工厂客户端”是一个无效apiKey的奇怪消息!
#3
2
I had the same problem with API level 8 on both emulator and a physical device (2.2) Actually, for me it never worked. Then by chance I tried on emulator API level 10 (with Google API of course), and it worked just fine.
我在模拟器和物理设备(2.2)上遇到了与API级别8相同的问题。实际上,对我来说它从来没有奏效。然后我偶然尝试了模拟器API级别10(当然使用Google API),它运行得很好。
(Before that, I got a new MD5 with the keytool in order to register for a new apikey. However, I got exactly the same as the first time! Maybe I didn't use the keytool correctly.)
(在此之前,我使用keytool获得了一个新的MD5,以便注册一个新的apikey。但是,我和第一次完全一样!也许我没有正确使用keytool。)
#4
0
I had this error but nothing useful in the Logcat output to determine the AV.
我有这个错误,但在Logcat输出中没有任何用处来确定AV。
I simply cleaned my project in Eclipse and then I got a proper stack trace of the problem, which was nothing related to MapView. It was just that the MapView was based in the first activity visible.
我只是在Eclipse中清理了我的项目,然后我得到了一个问题的正确堆栈跟踪,这与MapView无关。只是MapView基于可见的第一个活动。