Android app google maps showing grey tiles and not map!-ThrowExceptions

Exception or error:

I followed this guide here perfectly and have gone through it again but when I run the program on my google avd the page loads but only grey tiles appear and it doesn’t show a map which it should.

Does anyone have any ideas?

Thanks

How to solve:

I was facing the same issue a couple of days ago and figured out that something related to APK signing was acting weird. The solution was to set the “Custom debug keystore” setting (empty by default) to the same value as the “Default debug keystore” in the Eclipse preferences.

###

You either have the wrong value for android:apiKey in your MapView, or you do not have the INTERNET permission, or you do not have Internet access.

###

Worth remembering when you are ready to release to marketplace to generate new RSA fingerprint and API key from your actual keystore as opposed to the default debug keystore.

Also if you are developing on different machines you’ll have different keystores and hence different RSA fingerprints. That had me stumped for a while when google maps suddenly stopped working when developing at home.

###

I had the same problem : grey tiles and not map.

My solution was to move :

<uses-permission android:name="android.permission.INTERNET" />

outside <application>< /application>

It works now! I hope it can help anybody!

###

I solved this problem in another way:
I’m working on hackintosh mac os. So I gone to terminal and type:

keytool -list -alias androiddebugkey -keystore /Users/hackintosh/.android/debug.keystore -storepass android -keypass android

It generated me a certificate’s MD5 fingerprint like:
“94:1E:43:49:87:73:BB:E6:A6:88:D7:20:F1:8E:B5:98”..
After it, I went to google maps api site

https://developers.google.com/android/maps-api-signup?hl=en-US

and paste the certificate’s MD5 fingerprint. The google maps api returns me an API Key that I glued in the API Key field on my XML’s app.
And there’s no more grey fields =)

###

If you’re are using the debug keystore to sign your app you need to generate a key for it too, in addition to the cert you plan to use for production.

###

I dont know weather this will work for you or not.

Try following methods:

1) Check your API key when you are connected to svn as you might be sharing other person’s key. If you do not have one then create it from this link: google map md5 generation

and then generate api key from api key

2) check manifest for INTERNET permissions

android.permission.INTERNET

3)sometimes problem arises due to AVD. Go to Avd manager and increase Max VM application heap size and device RAM size.

Leave a Reply

Your email address will not be published. Required fields are marked *