安卓:谷歌地图v2的不显示的地图发布APK地图、APK

2023-09-06 02:39:41 作者:祢説過的ひ不會囄開我

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