Google map not showing when make signed apk

前端 未结 2 1894
灰色年华
灰色年华 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.

提交回复
热议问题