如何获得地图上的签署Android应用程序?如何获得、应用程序、图上、Android

2023-09-04 10:05:09 作者:养一只月亮

我创建了一个地图应用程序。它显示在地图上没有签署APK但是当我尝试登录,后来安装的APK在设备中的地图不显示了。

I have created a map application. It shows the map without signing the APK but while I try to sign and later install that APK in device the map does not display any more.

推荐答案

您需要一个单独的谷歌地图API密钥释放。你说你是不是签署APK在工作时,但应用程序实际上是由你的SDK自动登录,使用调试键。这可能是一个您拥有一个有效的谷歌地图API密钥也是如此。

You need a separate Google Maps API key for releasing. You say you are not signing the APK when it is working, but the application is actually being signed automatically by your SDK, using the debug key. This is probably the one for which you have a valid Google Maps API key as well.

这是在 HTTPS文件:// code.google.com /安卓/插件/谷歌的API / mapkey.html :

当你正在开发和调试   您的应用程序,你很可能会   sigining在调试应用程序   模式 - 也就是SDK构建工具   会自动登录你的   应用程序使用调试   证书。为了让你的MapView   元素正确显示的地图数据   在此期间,你应该得到   临时地图API密钥注册   调试证书。要做到这一点,你   首先需要得到的MD5指纹   的调试证书。当你   准备发布应用程序时,你   必须注册释放证明   与谷歌地图服务,   获取新的地图API密钥。你必须   然后更改的MapView元素   您的应用程序以引用新   API密钥。

While you are developing and debugging your application, you will likely be sigining your application in debug mode — that is, the SDK build tools will automatically sign your application using the debug certificate. To let your MapView elements properly display Maps data during this period, you should obtain a temporary Maps API Key registered to the debug certificate. To do so, you first need to get the MD5 fingerprint of the debug certificate. When you are ready to release your application, you must register your release certificate with the Google Maps service and obtain a new Maps API Key. You must then change the MapView elements in your application to reference the new API key.