Google Map Android API v2 无法在 Play 商店应用程序中显示地图 [英] Google Map Android API v2 can't display map in play store application
问题描述
我正在 Android 应用程序中使用 Google Map Android API v2
.
I am working with the Google Map Android API v2
in an android application.
它与未签名的 apk 在不同设备上运行良好.但是当我签署了 apk 并将我的应用程序上传到 Play 商店时,下载的应用程序会显示一个白屏而不是地图.
It works fine with the unsigned apk on a different device. But when I have signed the apk and uploaded my application to the Play Store the downloaded application displays a white screen instead of the map.
推荐答案
您使用的是什么类型的密钥库?有两个键.Debug
和 release key
.如果您使用调试密钥并上传到 android 市场,地图将显示为空白.在您签署 apk 时使用发布密钥.
What type of keystore you are using? there are two keys. Debug
and release key
. If you use debug key and uploaded in android market, map will look blank. Use release key when you signed your apk.
发布密钥程序
第 1 步:
例如,您的 apk 名称是 A,您正在为 A.apk 签名并创建密钥库,即 A.keystore 将在某个驱动器位置创建.让我们考虑在 E 驱动器中.
Say for example your apk name is A and you are signing and creating a keystore for A.apk ie A.keystore will be created in some drive location.Let's consider it in E drive.
第 2 步:
现在在C盘定位到jdk(考虑windows并分配C盘)
Now locate to jdk in C drive(Considering for windows and assigning C drive)
C:Program FilesJavajdk1.7.0in>keytool -list -v -keystore E:A.keystore -alias A
因此它将创建 SHA-1 指纹.
So it will create SHA-1 finger print.
这篇关于Google Map Android API v2 无法在 Play 商店应用程序中显示地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!