从Android电子游戏场所PLACES_API_INVALID_APP错误 [英] PLACES_API_INVALID_APP error from Android Play Places
问题描述
我从 https://github.com/googlesamples/android-试图谷歌地方自动填充实例玩-地方的。
我已经把在正确的地方正确的API密钥。我知道这是因为当我把一个随机字符串无效的API密钥我会得到一个不同的错误。
I have put the correct API key at the correct place. I knew it because when I put a random string invalid API key I will get a different error.
所以,当我把正确的API密钥,我跑在这两个真实的设备和仿真应用。这两款器件给了我这个错误:
So after I put the correct API key, I run the app in both real device and simulator. Both devices gave me this error:
{状态状态code = PLACES_API_INVALID_APP,分辨率= NULL}
Status{statusCode=PLACES_API_INVALID_APP, resolution=null}
是什么原因导致这个错误,以及如何解决它?
What causes this error and how to fix it?
推荐答案
1>创建<a上的一种新的项目href=\"https://console.developers.google.com\" rel=\"nofollow\">谷歌开发者控制台
2> API管理>凭据>新凭证> API密钥> Android的钥匙> preSS创建按钮和放大器;生成的的 API KEY 的
2> API Manager > Credentials > New Credentials > API Key > Android Key > Press Create Button & Generate API KEY
下面,而不应用程序和放大器的包创建密钥; SHA指纹是工作在任何应用程序
Here, Creating key without applying package of application & SHA fingerprint is working in any application
必须记住:的
MUST REMEMBER:
启用的为Android谷歌Places API的的
Enable Google Places API for Android
这篇关于从Android电子游戏场所PLACES_API_INVALID_APP错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!