gpt4 book ai didi

android - 无法解析自动完成或名称解析 Places API PlaceAutocomplete : Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null}

转载 作者:行者123 更新时间:2023-11-30 05:04:44 26 4
gpt4 key购买 nike

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'

最佳答案

问题是 Google Play 服务位置库现在已过时,您必须遵循迁移指南 ( https://developers.google.com/places/android-sdk/client-migration ),在本线程的第一个答案中有完美的解释 How to resolve PLACES_API_ACCESS_NOT_CONFIGURED in Place Autocomplete Fragment .它对我来说效果很好。

关于android - 无法解析自动完成或名称解析 Places API PlaceAutocomplete : Status{statusCode=PLACES_API_ACCESS_NOT_CONFIGURED, resolution=null},我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54754069/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com