9

I've updated play services to the latest version, which currently is at 9.2.0 and I also want to use selective modules for the google play services.

//    compile 'com.google.android.gms:play-services:9.2.0'
compile 'com.google.android.gms:play-services-maps:9.2.0'
compile 'com.google.android.gms:play-services-analytics:9.2.0'
compile 'com.google.android.gms:play-services-gcm:9.2.0'
compile 'com.google.android.gms:play-services-location:9.2.0'

The issue I'm having, is that now the imports like:

import com.google.android.gms.location.places.Place;

import com.google.android.gms.location.places.AutocompleteFilter;
import com.google.android.gms.location.places.AutocompletePrediction;
import com.google.android.gms.location.places.Place;
import com.google.android.gms.location.places.PlaceBuffer;
import com.google.android.gms.location.places.Places;

Cannot be resolved anymore, although in their documentation it is stated that location services should provide Places features also.

Can someone help me with this Issue? Thank you.

Ionut Negru
  • 6,186
  • 4
  • 48
  • 78

1 Answers1

26

Based on the comment added by @Selvin, I managed to find the solution for my issue.

It seems that on version 9.x.x, Google Play Services API for Places was moved from play-services-location into play-services-places. Thus, now I'm having the following dependencies for Google Play Services APIs:

//    compile 'com.google.android.gms:play-services:9.2.0'
compile 'com.google.android.gms:play-services-maps:9.2.0'
compile 'com.google.android.gms:play-services-analytics:9.2.0'
compile 'com.google.android.gms:play-services-gcm:9.2.0'
compile 'com.google.android.gms:play-services-location:9.2.0'
compile 'com.google.android.gms:play-services-places:9.2.0'
Ionut Negru
  • 6,186
  • 4
  • 48
  • 78