安卓:谷歌地图v2的不显示的地图发布APK [英] Android: Google Map v2 not showing map for release apk

查看:221
本文介绍了安卓:谷歌地图v2的不显示的地图发布APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的谷歌地图应用程序正常工作的设备调试与谷歌地图API密钥,但是当我创建签署的apk我与发布谷歌地图API密钥的应用程序,它不显示地图。 要生成发布模式谷歌API密钥,我使用SHA1指纹与我的密钥库中。 而我也定义签署和建立各类在我的项目设置由developer.android.com的解释(<一href="http://developer.android.com/tools/publishing/app-signing.html">http://developer.android.com/tools/publishing/app-signing.html).

My google map app works fine on device with debug google map API KEY but when I create signed apk for my app with release google map API KEY, it does not display map. To generate release mode google API KEY , i am using SHA1 fingerprint with my keystore. And i am also defining "signing and build types" in my project Settings as explained by developer.android.com(http://developer.android.com/tools/publishing/app-signing.html).

想尽一切可能的解决方案(删除APK,比再重新安装,重启设备,清洗的项目)。毫无效果。 任何人有一个很好的解决了我的问题,请帮助。 仅供参考使用机器人工作室的平台。

Tried every possible solution(removing apk and than reinstalling it again, restarting the device, cleaning the project ). nothing worked. Anybody have a good solution to my problem please help. FYI Using android studios platform.

推荐答案

API密钥必须是硬coded到Android清单,它不工作,如果是在一个单独的资源的XML文件。

The API key needs to be hardcoded into the Android Manifest, and it doesn't work if it's in a separate resources XML file.

这篇关于安卓:谷歌地图v2的不显示的地图发布APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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