Google 地点 API - 无法解析 getPlacesPhotos()

Google Places API - getPlacesPhotos() cannot be resolved

我正在尝试使用 Google Places API 使用他们教程中的官方方法检索一些地方的图片:

PlacePhotoMetadataResult result = Places.GeoDataApi.getPlacePhotos(mGoogleApiClient, placeId);

但是我的 IDE(Android 工作室)出现错误,告诉我它无法解析方法 getPlacePhotos()

Places.GeoDataApi中,我只能调用getAutocompletePredictions()getPlaceById()

为什么我不能打电话给 getPlacePhotos()

此致,

尽管它在描述功能时将 getPlacePhotos 显示为 geoDataApi 中的 public 方法。 (此处https://developers.google.com/android/reference/com/google/android/gms/location/places/GeoDataApi.html

实际 class 定义没有 getPlacePhotos。 (最后更新于 8 月 20 日) http://developer-android.ir/reference/com/google/android/gms/location/places/GeoDataApi.html