简体   繁体   中英

Google map is not being displayed when I install app from playstore

I am working on google maps. I have generated the signed apk from my keystore and also SHA-1 from the same keystore. I have also put that SHA-1 to developer console. Now I have uploaded my application to playstore. When I test it after downloading application from playstore. Then map is not being displayed. When I checked logcat, it says Authorization Failed. When can be root cause. Thanks in advance.

I was facing the same issue so what I do is as below:

  1. Created a fresh copy of SHA-1 using the same Keystore(in Command Promt) and just added to the concern Map API.

     command : keytool -list -v -keystore ~\\mykeystore.jks 
  2. Add generated SHA-1 to the Map API.

Note: Make sure of using same keystore of release.

您必须从发行版SHA-1中生成新的Api密钥,然后在您的应用程序中使用它。

Please ensure below point.

1) Did you create map api key from your keystore's sha1 from which your are signing your application not debug key store.

2) Did you enable "Google Maps Android API" from the developer console https://console.developers.google.com/apis/api/maps_android_backend/overview?project=linen-rex-463

3) Ensure you are creating the sha1 key from correct package. Because "authorization failed" enerally caused when your app's key is not being identified at google console.

3) Have you added the new MAP API key to your Application meta info.

Do let me know if you still face the same issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM