0

I am working on an app, where I open the map after click on a button. I open a new activity (intent) and with that "Maps_activity" I set "maps_layout".

My Problem is, I get a blank maps, just see "GOOGLE"on the left bottom side:Blank Maps?!?

1) I add:

compile 'com.google.android.gms:play-services:10.0.1' (my  buildToolsVersion is "24.0.3" - Compile SDK version 24)

2) I add maps layout from an other maps-app, which works. (I changed the context)

3) I add meta-data and API-Key on manifest (and the Maps_Activity the activity works, opens the maps, just blank?)

4) I add the API-Key in release- and debug- google_maps_api.xml

MLavoie
  • 9,671
  • 41
  • 36
  • 56
MrOrhan
  • 877
  • 6
  • 21
  • Do you see any error in the logcat? – Much Overflow Dec 16 '16 at 20:31
  • ty for the quick answer, yeah there is an error. But i dont get it. I get the key from the official link from the maps.xml the error: – MrOrhan Dec 17 '16 at 02:28
  • E/b: Authentication failed on the server. E/Google Maps Android API: Authorization failure. Please see https://developers.google.com/maps/documentation/android-api/start for how to correctly set up the map. E/Google Maps Android API: In the Google Developer Console (https://console.developers.google.com) Ensure that the "Google Maps Android API v2" is enabled. Ensure that the following Android Key exists: – MrOrhan Dec 17 '16 at 02:29
  • Did you add your apps SHA fingerprint into google dev console? It seems like you missed that part – Much Overflow Dec 17 '16 at 04:40
  • You mean the API-Key? I put it in 3 places (manifest,release,debug) – MrOrhan Dec 17 '16 at 12:25
  • Thank You @MuchOver. I searched a little and find out, you were right. i forogt to add my sha and package name to the key. – MrOrhan Dec 17 '16 at 12:54
  • Who people who has problems too, my solution was: open: https://console.developers.google.com then go on "access data/ login data" (i have it in german) then on the bottom you can add a new packege name and a new sha. you can find ur Package name in Manifest. How to find SHA, can u look on this page: http://stackoverflow.com/questions/27609442/how-to-get-the-sha-1-fingerprint-certificate-in-android-studio-for-debug-mode – MrOrhan Dec 17 '16 at 12:59

0 Answers0