вот ссылка на учебник ,
это ссылка на пример кода , а вот мой код: mGoogleApiClient= new GoogleApiClient
.Builder(this)
.addApi(Places.GEO_DATA_API)
.addApi(Places.PLACE_DETECTION_API)
.enableAutoManage(this,this)
.build();
mPlaceAdapter=new PlaceAutocompleteAdapter(this,mGoogleApiClient,LAT_LNG_BOUNDS,null);
конструктор класса PlaceAutocompleteAdapter:
public PlaceAutocompleteAdapter(Context context, GeoDataClient geoDataClient,
LatLngBounds bounds, AutocompleteFilter filter) {
super(context, android.R.layout.simple_expandable_list_item_2, android.R.id.text1);
mGeoDataClient = geoDataClient;
mBounds = bounds;
mPlaceFilter = filter;
}
У меня есть все необходимые импорты и следующее в моем Gradle:
implementation 'com.google.android.gms:play-services-places:15.0.1'
implementation 'com.google.android.gms:play-services-location:15.0.1'
и ошибка, которую я получаю:
error: incompatible types: GoogleApiClient cannot be converted to GeoDataClient