Android 谷歌地图版本 2 显示空白页面? [英] Android google map version 2 shows blank white page?

查看:36
本文介绍了Android 谷歌地图版本 2 显示空白页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我使用的是 Google 地图版本 2.当我通过 Eclipse 在真实设备上运行该应用程序时意味着它会显示地图.但是当我将应用程序导出为已签名的 apk 并在 Play 商店中上传我的 apk 时.然后我下载从 Play 商店上传的 apk 文件并在我的设备中运行它,但它只显示空白页面.我不知道是什么问题.有人知道吗.请帮助我解决这个问题.

In my application am using Google map version 2.When i run the application in real device through eclipse means it shows the map.but when i export the application as signed apk and am upload my apk in play store.Then i download the uploaded apk file from play store and am run it in my device but it shows only blank white page.i don't know whats the problem.Can any know.please help me to solve this issue.

推荐答案

你必须要求 signed apk with SHA-1

第 1 步:

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

So it will create SHA-1 finger print

第 2 步:

    Go to google api console.
    Generate new api key for android you have to used this SHA-1 and current playstore package name.
    Put Api key into your map.

我希望这对你来说已经足够了.如果有任何查询评论.

I hope this is enough for you.If any query put comment.

这篇关于Android 谷歌地图版本 2 显示空白页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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