【问题标题】:Android google places api return request deniedAndroid google Places api返回请求被拒绝
【发布时间】:2013-11-29 18:59:47
【问题描述】:

在我的 Android 项目中,我正在使用 Google map v2 及其工作。作为更改请求,我需要在 AutoCompleteTextview 中包含搜索位置。

I did the following steps to get map in Google console.
1) I have registered app.
2) Placed SHA1 key and generated Android key.
3) And made all procedure and get map.

Now I include Google places search in an auto complete textview.
1) go to the project enabled places api in the service pane. (picture 1)
2) I give sample company name and web site url (http://www.google.com). (picture 2)
3) now I get browser key and used it in app. (picture 3)

需要使用什么键(浏览器键或安卓应用键)。我都用过。

但是我得到了请求被拒绝的异常。我希望我所做的一切都是正确的。

我参考了site 的样本。

屏幕截图:

之后:

【问题讨论】:

标签: android google-maps google-places-api


【解决方案1】:

我通过使用 Server key 而不是使用浏览器密钥解决了这个问题。

【讨论】:

    【解决方案2】:

    只需在您的键值之前添加 key= .您的密钥应该是“key=AIzaSyAVQJO-cp6RcEVUJ-6Yb_b”

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-09-04
      • 1970-01-01
      • 2019-12-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-30
      相关资源
      最近更新 更多