从Android电子游戏场所PLACES_API_INVALID_APP错误 [英] PLACES_API_INVALID_APP error from Android Play Places

查看:750
本文介绍了从Android电子游戏场所PLACES_API_INVALID_APP错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从 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屋!

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