Android 谷歌地图版本 2 显示空白页面?

标签 android eclipse google-maps android-maps android-maps-v2

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

最佳答案

您必须要求使用 SHA-1 签名的 apk

第 1 步:

Now locate to jdk in C drive(Considering for windows and assigning C drive)

C:\Program Files\Java\jdk1.7.0\bin>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.

我希望这对你来说足够了。如果有任何查询发表评论

关于Android 谷歌地图版本 2 显示空白页面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18711342/

相关文章:

android - 样式未应用于 child Prop

c++ - Eclipse CDT 显示错误的错误图标

java - Play、Eclipse、Java生成项目模板

Android,如何将经纬度路线信息传递给谷歌地图应用程序

Android动态字符串资源

android - Android 2即时运行

google-maps - 从 Angular 2 服务设置谷歌地图 API key

swift - 在 iOS swift 中将 LAT/Long 转换为位置地址

java - Android Studio 2.2 和 Jack 被 Avira Antivirus 阻止

java - 在 web 服务中找不到类异常 Class.forName ("com.mysql.jdbc.Driver")