Google Places API已激活,除Places API之外,所有其他MAP服务均按预期运行。任何建议都将受到高度赞赏
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'
答案 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的第一个答案中对此进行了很好的解释。对我来说很好。