Google Maps is not shown in [duplicate] release

0

I'm still stuck with my project in the attempt to show the maps of google maps in release from google play.

I have read and applied the different answers to similar questions by other colleagues and they have not worked for me.

In the attempt to locate the error, I created a new test app, with a single map, the problem persists, when I generate the release apk if the charge directly to my device works correctly, if the download of google play the map is not shown.

Steps I take:

  • Build / SelectBuildVariant: change from debug to release.

  • I look for Sha-1 with keytool of my publication key via cmd (I use one that I had already generated in another attempt).

  • at console.developers.google.com/apis/library enabled the Google Android API API API.

  • I use a previously generated project, I generate a new apikey, I restrict it to mobile applications, with Sha-1 obtained and name package of my app.

  • I copy apikey and paste it in release / Google_maps_api.xml

  • Build / Generate Signed APK.Obtengo APK.

  • I hang APK to GooglePlay ....

  • .... and nothing: (

    Does anyone have any suggestions?

        
    asked by Martí Amat Vila 04.11.2017 в 08:04
    source

    1 answer

    0
      

    Why does this happen? this happened because there are different SHA1 in   debugging and publication type.

    The solution is to add the SHA1 from my used keystore (that you used to build the apk version) to the San Google console

    The steps below:

    1- Get the path to your keystore

    when you generate signed APK

    Build ---- > Generate signed APK ...

    Do not forget to do Build Type --- release

    2- Remove SHA1 for used keystore, open its terminal use command below

    keytool -list -v -keystore "/Users/NT/Desktop/generalkey.jks" you will be asked for a password for your keystore

    change the path to the keystore path keytool -list -v -keystore "keystore path"

    Fingerprint Certificate: you will find SHA1

    3- generate the Android key using this SHA1 and your package name

    I hope it serves you. !

        
    answered by 04.11.2017 в 21:50