Couldn't get connection factory client

烈酒焚心 提交于 2019-11-26 00:55:36

问题


I got this error: 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?


回答1:


I'm getting the same problem when using getFromLocationName, with a 'java.io.IOException:Service not Available' error.

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




回答2:


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.

"Couldn't get connection factory client" is a weird message for an invalid apiKey !




回答3:


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.

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




回答4:


I had this error but nothing useful in the Logcat output to determine the 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.



来源:https://stackoverflow.com/questions/2199403/couldnt-get-connection-factory-client

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!