Android 无法获得连接工厂客户端

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2199403/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 04:55:40  来源:igfitidea点击:

Couldn't get connection factory client

androidgoogle-mapsgoogle-maps-android-api-1

提问by rayman

I got this error: ERROR/MapActivity(258): Couldn't get connection factory client

我收到此错误: ERROR/MapActivity(258): Couldn't get connection factory client

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 中发布该错误?

采纳答案by Alistair R

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

回答by Someone Somewhere

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 的奇怪消息!

回答by Tombola

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.)

(在此之前,为了注册一个新的apikey,我用keytool得到了一个新的MD5。但是,我和第一次得到的完全一样!可能是我没有正确使用keytool。)

回答by Richard Hollis

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 基于第一个可见的活动。