如何配置android map sdk v2使用不同的key进行生产和开发? [英] How to configure android map sdk v2 to use different keys for production and development?

查看:21
本文介绍了如何配置android map sdk v2使用不同的key进行生产和开发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为开发和生产自动设置不同的android map api V2密钥.

I want to automatically set different android map api V2 keys for development and production.

推荐答案

登录 Google APIs Console在Simple API Access"下,点击右侧的Edit Allowed Android apps..."如说明所述,每行输入一个 SHA-1 指纹:

Log in to Google APIs Console Under "Simple API Access" click "Edit Allowed Android apps..." on the right side Enter one SHA-1 fingerprint per line like the instructions say:

"每行一个 SHA1 证书指纹和包名(以分号分隔).示例:45:B5:E4:6F:36:AD:0A:98:94:B4:02:66:2B:12:17:F2:56:26:A0:E0;com.example45:B6:E4:6F:36:AD:1A:98:94:B4:02:66:2B:12:17:F1:56:26:A0:E0;com.example"

"One SHA1 certificate fingerprint and package name (separated by a semicolon) per line. Example: 45:B5:E4:6F:36:AD:0A:98:94:B4:02:66:2B:12:17:F2:56:26:A0:E0;com.example 45:B6:E4:6F:36:AD:1A:98:94:B4:02:66:2B:12:17:F1:56:26:A0:E0;com.example"

现在,只需使用相同的简单 API 密钥",它就可以用于您的调试和发布证书,而无需更改任何内容.

Now, just use the same "Simple API key" and it'll work for your debug and publish certificate without having to change anything.

这篇关于如何配置android map sdk v2使用不同的key进行生产和开发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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