谷歌地图不显示时许签署的apk地图、apk

2023-09-04 06:51:06 作者:让我堕落

在我的项目谷歌地图显示和一切工作正常,当我运行code直接从Eclipse或机器人工作室,但地图显示白色画面时,我做一个签名的APK安装我的设备。

In my project google map showing and everything working fine when i run code directly from eclipse or android studio, but map showing white screen when i make a signed apk and install my device.

有任何人知道什么可能是这个问题?

Have anyone idea what can be the issue ?

推荐答案

当你犯了一个签名的APK,你必须生成一个新的API密钥的谷歌地图和API控制台更新。与调试APK使用的API密钥将无法正常工作。

When you make a signed APK, you have to generate a new API key for the Google Map and update it in the API console. The API key used with the debug APK will not work.

检查您的logcat,它可能显示了一个授权失败消息。

Check your logcat, it probably shows an Authorization Failure message.