52

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?

MaciejGórski
  • 22,187
  • 7
  • 70
  • 94
rayman
  • 20,786
  • 45
  • 148
  • 246
  • Do you have network connectivity in your emulator/device? – Jaime Soriano Apr 19 '10 at 08:35
  • i'm also having the same problem all of sudden this not working,and i cannot find any help for this,if any one have fix this please let me know. – Sam Dec 11 '11 at 15:46
  • Just started experiencing this yesterday. Made a small change to my app and uploaded it to my phone and now the map acts like it has an invalid key! It should be noted that my debug key works fine. My production key (used in multiple apps works until the particular app is rebuilt). – Roy Hinkley Dec 23 '11 at 18:31
  • well i checked the log for network connection , it says MapActivity : handling network change notification :CONNECTED – Hussain Akhtar Wahid 'Ghouri' Oct 12 '12 at 09:12

4 Answers4

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.

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

Someone Somewhere
  • 23,475
  • 11
  • 118
  • 166
  • Hey, I have the same problem with the API Key. Do I have to reinstall Android dev Kid? Do you know how to generate a new debug.keystore? Thanks! – xus Dec 19 '11 at 10:42
  • 3
    I think this might help: http://www.mobisoftinfotech.com/blog/android/android-mapview-generate-api-key-using-java-keytool/ – Someone Somewhere Dec 19 '11 at 23:58
  • Someone Somewhere is great and made my day ;-p worked perfectly indeed ! – Hubert Sep 23 '12 at 20:24
15

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

Alistair R
  • 776
  • 9
  • 16
  • I am facing the same problem with google api with api 7. What is the cause of this problem and how to solve it? – user590849 Mar 11 '11 at 14:24
  • hey madcabbage , there is no solution in your link, for "Couldn't get connection factory client", what is the solution for this error ? – Jayesh Oct 11 '11 at 05:54
  • 1
    Seems to be a solution (aka work around) in the posted bug link. http://code.google.com/p/android/issues/detail?id=8816#c21 – Alistair R Oct 20 '11 at 14:52
  • I had this error when first trying to use the MapView. I didn't have the proper permissions: ` ` – Rino Farina Nov 05 '11 at 17:11
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.

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

Tombola
  • 1,131
  • 5
  • 15
  • 26
0

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.

RidingTheRails
  • 1,105
  • 1
  • 12
  • 22