Couldn't get connection factory client

AndroidGoogle MapsGoogle Maps-Android-Api-1

Android Problem Overview


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?

Android Solutions


Solution 1 - Android

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 !

Solution 2 - Android

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

Solution 3 - Android

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

Solution 4 - Android

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.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionraymanView Question on Stackoverflow
Solution 1 - AndroidSomeone SomewhereView Answer on Stackoverflow
Solution 2 - AndroidAlistair RView Answer on Stackoverflow
Solution 3 - AndroidTombolaView Answer on Stackoverflow
Solution 4 - AndroidRidingTheRailsView Answer on Stackoverflow