Can't resolve Places, Google Play services

I am adding Google Play Services Exemption as:

compile 'com.google.android.gms: play-services: 6.5.87'

to use the Google Places API, but does not enable the Places interface below:

  mGoogleApiClient = new GoogleApiClient
                .Builder(this)
                .addApi(Places.GEO_DATA_API)
                .addApi(Places.PLACE_DETECTION_API)
                .addConnectionCallbacks(this)
                .addOnConnectionFailedListener(this)
                .build();

      

For using the Google Places API, which I have to use or import as a separate project. Also it does not allow either:

import com.google.android.gms.nearby

+3


source to share


1 answer


Consider to add com.google.android.gms:play-services-places:<latest version>

to build.gradile

.



+4


source







All Articles