0

I recently inherited an Android app project here at work. The app works fine when plugged into the person-who-I-inherited-the-project-from's computer but when plugged into my computer the portion with a google map is blank and I get a "Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors)." error in my console. This leads me to believe it's a setup issue on my end but after pouring over google and stackoverflow for many hours the problem persists.

I'm using ADT bundle 22. On Ubuntu 12.04. I added the google-play-services-lib through the sdk manager. My project's build path looks like this goole-play-services-lib and the "Order and Export" tab looks like this order

I also created a new api key at https://code.google.com/apis/console/ and ensured that "Google Maps Android API v2" was selected. I added this key to the AndroidManifest.xml in the appropriate location.

After multiple fresh imports of the project source and multiple fresh installs of the ADT, my problem remains. Can anybody point me in the right direction?

supersam654
  • 3,126
  • 33
  • 34
Geoffrey Ochsner
  • 235
  • 3
  • 14
  • Does the project you took over use Google Maps Android V2 or the old version of Google Maps? Also you said you have created a new api key, have you added your signing certificate SHA1 with the package name as allowed Android apps for that key? – Bobbake4 Aug 08 '13 at 14:41
  • I used the SHA1 from my /.android/debug.keystore and my package name, yes. It is the v2 of google maps – Geoffrey Ochsner Aug 08 '13 at 14:42
  • Try removing all certificates from your key in the API Console (leave to `Any app allowed`). This is not a solution but may point you to the right direction. – Androiderson Aug 08 '13 at 14:53
  • can you post your Manifest.xml? it feels like you forgot one of the permissions! – bofredo Aug 08 '13 at 14:56

2 Answers2

0

On a flyer I refreshed my key and changed the part with com.mycompany to com.mycompany.packagename. Maybe this was common knowledge but as the google help associated with key creation as show below only included com.mycompany I feel it is misleading. Maybe this can help somebody else. googlehelp

Geoffrey Ochsner
  • 235
  • 3
  • 14
0

This is the problem becouse of credentials (Google MAP API key) You need to generate new API key by using you machine's SHA1 finger print

Eclipse, if you go to Windows -> Preferences -> Android -> Build you find SHA1 fingerprint

copy that key and generate new API key

for referense read this -> How to obtain Signing certificate fingerprint (SHA1) for OAuth 2.0 on Android?

Community
  • 1
  • 1
Gaurav
  • 3,615
  • 2
  • 27
  • 50