Google Map is not loaded for the app downloaded from the Play Store

强颜欢笑 提交于 2019-12-09 01:48:36

问题


I use Google Map in my app. When I install the app from my pc using Eclipse, the Google Map is loaded properly. Now I uploaded the app to the Google Play Store for distribution. For the app installed from the Play Store, Google Map is not loaded. What is wrong or which step am I missing?

EDIT 1: Now I get the SHA1 fingerprint from the release keystore. Then I go to the Google APIs Console and using exiting project and that fingerprint, I created new Android API Key. That new API key is replaced with my old debug API Key and then I export a new apk again. That apk is uploaded to the play store. It looks I followed all required steps. But still, the map is not loaded and only white color background appeared. Same thing happened at these links, but no description of how they solve the problem. link


回答1:


Try to do following

  • Please cross verify package name both in API console and in manifest file.
  • Please cross verify API key in both API console and in manifest file.
  • Sign the unsigned APK using release keystore

Before uploading to play store,

  • Install it whether it displays Map. It should display map, once it works then only upload APK play store.

Note: Some time you have to UNINSTALL app which is already installed in device and try to re install new APK, it should work :).



来源:https://stackoverflow.com/questions/19740025/google-map-is-not-loaded-for-the-app-downloaded-from-the-play-store

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!