在同一个Android项目的多个API密钥 [英] Multiple API keys in the same Android project

查看:116
本文介绍了在同一个Android项目的多个API密钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在同一code碱基指定谷歌地图Android版API多个密钥?

Is it possible to specify multiple keys for Google Maps Android API in the same code base?

它看起来像我有我每次更改密钥存储时间更改密钥清单文件。这是不是很方便,恕我直言,如果你需要测试与密钥签名的应用程序形成调试和发布密钥库。

It looks like I have to change the key in manifest file each time I change keystore. It's not very convenient, imho, if you need to test the app signed with keys form debug and release keystores.

推荐答案

我不认为这是你想要做什么。你应该添加调试版本和发布SHA1关键在于谷歌开发者API控制台的API密钥。看看这个答案

I don't think this is what you want to do. You should add both debug and release SHA1 key to API key on Google Developer API Console. Take a look at this answer

这篇关于在同一个Android项目的多个API密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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