Android Google Map not loading

10,816

It just can be something wrong with you api key.

Check this:

In Version 2 Map view does not show map

Failed to load map. Error contacting Google servers. This is probably an authentication issue

Share:
10,816

Related videos on Youtube

Peter Burns
Author by

Peter Burns

Stack Overflow Valued Associate #00001 Wondering how our software development process works? Take a look! Find me on twitter, or read my blog. Don't say I didn't warn you because I totally did. However, I no longer work at Stack Exchange, Inc. I'll miss you all. Well, some of you, anyway. :)

Updated on September 15, 2022

Comments

  • Peter Burns
    Peter Burns over 1 year

    Before I start, yes, I have searched and, no, the other related topics littered with (or without) solutions did not help me.

    I recently started programming in Android, so I'm far from experienced. However I'm noticing quite some resemblance to C# in terms of writing which made it a logical choice for me.

    Currently working on a quick test app that's supposed to display the GMap in a fragment, however, nothing is coming up apart from a light grey background and the + and - signs towards the bottom right.

    The logcat depicted the following error:

    08-29 08:28:48.190: E/Google Maps Android API(5147): Failed to load map. Error contacting Google servers. This is probably an authentication issue (but could be due to network errors).
    

    Okay, now I'm thinking something went wrong with the API stuff, though I followed most of what's displayed on this page. I suppose I could ask the author but most of the others seem to have luck & joy with similair methods & code so the issue must be specificly me. However I did find this page, but it is now an older topic with no solutions at all.

    I'm testing this on an actual android device, Galaxy S2, and everything else seems to work fine apart from this bit.

    I used the keytool, wrote the SHA-1 fingerprint I got from the keytool (linked to debug.keystore), and put this in the console, along with what I'm gonna call my namespace. I retrieved the API key, stuck it in the manifest and launched the app only to burst into tears.

    I tried multiple things up to this point over the past few days. One completely prevented the app from booting, while another even gave me a bright yellow map (with no streets or info, just the interface).

    Any suggestions/hints/tips?