Google Map v2在Play商店中不起作用 [英] Google map v2 doesn't work in play store

查看:98
本文介绍了Google Map v2在Play商店中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个可使用Google Map api V2显示google map的android应用,它在我的手机中运行良好. 但是,当我将此应用的APK上传到(Google Play商店)时,它没有显示我的地图.

I created an android app that shows google map using Google Map api V2 and it works well with me in my mobile. But when I uploaded the apk of this app to (Google play store), it doesn't show my map.

谁能告诉我为什么?以及如何解决这个问题?

Could anyone tell me why? and how to solve this issue?

谢谢.

推荐答案

您的Maps API密钥与用于对应用程序.apk进行签名的密钥库的SHA1签名相关联.从eclipse运行应用程序时,将使用调试密钥库,导出应用程序以进行发布时,将使用真实"密钥库(在eclipse的导出向导的末尾显示SHA1指纹).

Your Maps API key is tied to the SHA1 signature of the keystore that is used to sign the app .apk. When you run your app from eclipse, a debug keystore is used, when you export your app for release, you use a 'real' keystore (it's SHA1 fingerprint is shown at the end of eclipse's export wizard).

因此,您必须创建与发布密钥库相对应的另一个Maps API密钥(放入清单中)以进行发布.

So you have to create another Maps API key (to put in your manifest) corresponding with you release keystore for release.

此处查看Google的文档.

Check Google's documentation here.

这篇关于Google Map v2在Play商店中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆