Android: Google Map v2 not showing map for release apk

后端 未结 16 1385
感情败类
感情败类 2020-12-08 16:04

My google map app works fine on device with debug google map API KEY but when I create signed apk for my app with release google map API KEY, it does not display map. To gen

16条回答
  •  时光说笑
    2020-12-08 16:29

    How do I get the release api SHA1 fingerprint:

    install your signed APK, from Playstore, or just copying it to the phone.

    Plug USB cable if it is a real phone, and open Android Studio.

    The first time you try to get maps, a Log entry will show something like:

    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:
    
    API Key: AIzaS
    
    Android Application (;): 56:AF:B2:;br.com.tinx.
    

    then, just follow those instructions, creating a new entry in the Developer Console.

    • if you hit your app maps prior seeing the log, you may need to close app from memory and try again)
    • this procedure should work on an emulator too.

提交回复
热议问题