Map not showing with Android Studio Google Maps app

For some reason, I cannot see the map in my activity.

I am not getting any errors in the project / console when starting the application.

What I've done:

  • API enabled for Google Maps

enter image description here

  • Get the SHA1 fingerprint from debug.keystore

    5C: 9B: d5: 7E: CC: 42: 64: 20: 24: 15: 83: 8D: AF: AD: AE: 2A: 8F: F9: 75: 36

enter image description here

  • Added SHA1 fingerprint with package name

5C: 9B: d5: 7E: CC: 42: 64: 20: 24: 15: 83: 8D: AF: AD: AE: 2A: 8F: F9: 75: 36; one.two enter image description here

  • Put your API key in your manifest

...

<meta-data
        android:name="com.google.android.maps.v2.API_KEY"
        android:value="AIzaSyBN8bDm6sYpExCtD3pdNwQu49I65OVCieA" />

      

Please note that all the generated code was executed using the Google Maps activity template from Android Studio version 1.2

+3


source to share


2 answers


Answer my problem

The company's firewall was preventing my device from calling outside.



Tested on another network, ok.

+1


source


I tried everything too until I realized the device I was testing was in airplane mode. So if anyone else has the same problem try:

  • Switch Wifi
  • Change network


Also make sure the device or emulator can access the network.

-1


source







All Articles