出口APK之后,谷歌地图不应用展示。它为什么会发生? [英] After exporting apk the Google Maps do not show in application. Why does it happen?

查看:127
本文介绍了出口APK之后,谷歌地图不应用展示。它为什么会发生?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用谷歌地图V1 API密钥。如果我Itaking从bin文件夹中的APK,谷歌地图将显示在应用程序。但是,如果我出口项目和部署exorted APK谷歌地图并不在应用程序中显示。如果有人知道的原因,请分享你的看法。谢谢你。

I am using Google Maps V1 API key. If i Itaking the apk from bin folder, the Google Maps will shown in application. But if I export the project and deploy the exorted apk the google maps do not show in the application. If anybody knows the reason, kindly share your thoughts. Thank you.

推荐答案

在开发和本地运行的应用程序,你实际上是用调试密钥签名。

When you develop and run an application locally, you are actually signing it with a debug key.

当您导出,你与不同的,生产的重点在上面签名。

When you export, you are signing it with a different, production key.

谷歌地图需要你的API密钥,以适应所签署您的应用程序的关键。所以,你将需要2个不同的API密钥取决于通过调试关键的APK是否取得或生产(出口)(从bin的复制它)。

Google Maps requires your api key to match the key you sign your app with. So you will need 2 different api keys depending on whether your apk was made via debug key (copying it from "bin") or production (exporting).

如果您要导出的应用程序,关键是不匹配的是谷歌地图API认为是应该的,所以它不工作发生了什么事给你的是。

What's happening to you is when you export your app, the key is not matching what Google Maps API thinks it should be, so it's not working.

了解更多关于签名的应用程序这里

Read more about signing apps here.

这篇关于出口APK之后,谷歌地图不应用展示。它为什么会发生?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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