Google Maps does not show after loading on Google Play

I uploaded my application to the google play store and the map did not work, it just showed a white screen. I understand that I need to get a key based on the fingerprint of the issue certificate. I tried to read all about this and did the following, but it still does not work:

I created a new keystore (with password, alias and password, etc.) from Android Studio.

I ran cmd and did the following:

keytool -list -v -keystore key.jls -alias MyPlaces

then enter my password and get all the information I need. I created a key for google maps and api places based on my sha1 fingerprint. I entered the name of my package. I returned the Alias ​​code to my key application.

But that still doesn't work. I know that others had this problem, but what helped them did not help me.

Why? I hope that it is clear that I wrote. Thanks

I do not download it every time I check in the play store. Rather, I create a signed apk and then try to run it from my phone. Is that a question?

Edition:

This is the message I get in the logs.

06-22 23: 10: 07.529 6500-6543 /? E / b: Server authentication failed.

06-22 23: 10: 07.530 6500-6543 /? Google Maps E / API: Authorization Failure. For proper map setup, see https://developers.google.com/maps/documentation/android-api/start .

06-22 23: 10: 07.536 6500-6543 /? E / Google Maps API for Android: in the Google Developer Console ( https://console.developers.google.com )

, "Google Maps Android API v2".

, Android-:

API: YOUR_KEY_HERE

Android Application (;): 38:....... F0; com..... myplaces ( )

+4
4

.

:

API Key: YOUR_KEY_HERE

Google , googles_maps_api.xml :

<string name="google_maps_key" templateMergeStrategy="preserve" translatable="false">AIza....DOWdQ</string>

. strings.xml, .

+1

, . api . Apis ( Google Play). , Google Play, Google Maps api.

,

, . API v3 .

api.

https://console.developers.google.com/flows/enableapi?apiid=maps_android_backend&keyType=CLIENT_SIDE_ANDROID&r=24:85:5A:C0:F8:0D:36:4C:1A:B9:45:B6:21:92:B0:6E:7D:71:55:08%3Bcom.mapsapi.vatsan.googlemapsapidemo . google_maps_key Android .

<meta-data
        android:name="com.google.android.maps.v2.API_KEY"
        android:value="AIzaSDSSDDDAAD...Your API KEY" />

, Android, ( V3), res/values ​​/google_maps_api.xml . google

googlemaps Google Play Store. Google Play Services Google Play.

+1

, , 3 : D

googleplay apk, 2 "SHA-1", " ( )" " ( , googleplay" )

, api SHA-1

+1

:

  • , , .
  • , .
  • - .
  • v2 geo AndroidManifest.

Of course you have to add INTERNET PERMISSION, and if you are using the Gradle dependency manager, add google-play-servicesfrom your sdk.

compile 'com.google.android.gms:play-services-maps:9.0.2'

Hope this helps! Let me know how this happens!

0
source

All Articles