Google map not showing when make signed apk

前端 未结 2 1888
灰色年华
灰色年华 2021-01-27 18:02

In my project google map showing and everything working fine when i run code directly from eclipse or android studio, but map showing white screen when i make a signed apk and i

相关标签:
2条回答
  • 2021-01-27 18:38

    When you generate signed apk, at last step you get a SHA1 key.copy this key and go to google api console,click API and Auth on left side of screen ->Credential ->create new key->Android Key-> paste SHA1 key that you copied from apk generation screen and after SHA1 key place samicolon";" and your app package name. It will generate new api key,use it in manifest and run your app.it will display your map.

    0 讨论(0)
  • 2021-01-27 18:45

    When you make a signed APK, you have to generate a new API key for the Google Map and update it in the API console. The API key used with the debug APK will not work.

    Check your logcat, it probably shows an Authorization Failure message.

    0 讨论(0)
提交回复
热议问题