Android Google Maps发布密钥? [英] Android google maps release key?

查看:49
本文介绍了Android Google Maps发布密钥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取Google地图的发布密钥?我将当前密钥与debug.apk和signed-release.apk一起使用,并且地图未在release.apk上呈现,因此我假设其为API密钥问题.

How do I get a release key for Google Maps? I used my current key with a debug.apk and a signed-release.apk, and the maps dont render on the release.apk, so I assume its a API key issue.

关于此问题的所有答案可追溯至2013/14和

All the answers for this question on SO date back to 2013/14 and this page is completely silent on the issue.

推荐答案

与您获得调试"键的方式相同.并没有真正的区别,就像在Android中调试和发布证书之间没有真正的区别一样(除了调试证书是自动为您创建的并且位于您的Android设置文件夹中).

The same way you get a "debug" key. There is no real difference, just as there is no real difference between a debug and a release certificate in Android (except that the debug certificate gets created automatically for you and resides in your Android settings folder).

获取您的Android版本密钥的SHA-1指纹,并将其与正确的程序包名称一起使用(调试版本通常会附加".debug",因此请务必省略),以在其中创建新的Google Maps Key Google开发者控制台.

Get the SHA-1 fingerprint for your Android release key and use it along with the proper package name (debug builds usually have a ".debug" attached, so make sure to omit that) to create a new Google Maps Key in the Google Developer Console.

这篇关于Android Google Maps发布密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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