【问题标题】:Not able to resolve Autocomplete or name resolving Places API PlaceAutocomplete: Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null}无法解析自动完成或名称解析 Places API PlaceAutocomplete: Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null}
【发布时间】:2019-02-18 19:26:50
【问题描述】:

Google Places API 已激活,所有其他 MAP 服务都按预期工作,除了 Places API。任何建议都非常感谢

PlaceAutocomplete: Error getting autocomplete prediction 
API call: Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null}

使用 16.0.0 版本的 google play 服务

implementation 'com.google.firebase:firebase-measurement-connector-impl:17.0.5'
implementation 'com.google.firebase:firebase-crash:16.2.1'
implementation 'com.google.firebase:firebase-messaging:17.3.4'

implementation 'com.google.android.gms:play-services-measurement-base:16.3.0'
implementation 'com.google.android.gms:play-services-vision:17.0.2'
implementation 'com.google.android.gms:play-services-base:16.1.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.google.android.gms:play-services-maps:16.1.0'
implementation 'com.google.android.gms:play-services-nearby:16.0.0'
implementation 'com.google.android.gms:play-services-places:16.0.0'
implementation 'com.google.android.gms:play-services-gcm:16.0.0'

【问题讨论】:

    标签: android


    【解决方案1】:

    问题是谷歌播放服务的地方库现在已经过时了,你必须遵循迁移指南(https://developers.google.com/places/android-sdk/client-migration),这在这个线程的第一个答案How to resolve PLACES_API_ACCESS_NOT_CONFIGURED in Place Autocomplete Fragment 中得到了完美的解释。对我来说效果很好。

    【讨论】:

      猜你喜欢
      • 2016-10-10
      • 2019-08-06
      • 2016-11-08
      • 2018-03-09
      • 1970-01-01
      • 1970-01-01
      • 2017-11-25
      • 2022-07-07
      • 2021-05-13
      相关资源
      最近更新 更多