这个IP,网站或移动应用程序无权使用这个API密钥 - 机器人 [英] This IP, site or mobile application is not authorized to use this API key - Android
问题描述
我已经与谷歌地图API V2和Android的连接有问题。我已经启用的服务:
I have a problem with connection with Google maps API V2 and Android. I' ve enabled services:
- 在谷歌地图Android的API V2
- 位置API
此外,我已经添加SHA1指纹。
Also I've added sha1 fingerprint.
但我仍然得到这个消息:此IP,网站或移动应用程序是无权使用这个API密钥
But I still get this message: This IP, site or mobile application is not authorized to use this API key
我打电话从Android的服务。你知道可能是问题,因为我不知道到哪里去寻找。
I'm calling service from Android. Do you know where might be the problem, cause I don't know where to search.
推荐答案
您必须创建一个浏览器键,而不是一个机器人的关键。我面临着类似的问题,当我accidentely创建一个Android键谷歌云消息传递,而不是服务器密钥。请检查哪个键需要你的目的。对于谷歌地图v2的你需要的Android密钥和谷歌的地方API,您需要一台服务器键(搜索谷歌,但不能肯定在这一个从未使用过它)。所以基本上你需要两把钥匙。
You must be creating a browser key instead of an android key. I faced similar problem when I accidentely created an android key for Google Cloud Messaging instead of a server key. Please check which key is required for your purpose. For google maps v2 you need android key and for google places api you need a server key(searched google but not so sure on this one never used it). So basically you need two keys.
更新: 您需要服务器密钥对的地方API。
Update: You need server key for places api.
这篇关于这个IP,网站或移动应用程序无权使用这个API密钥 - 机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!