Neha
Neha

Reputation: 135

Cannot resolve Places, Google play services

I have add the liberary of Google Play services as :

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

for using Google Places API, but still it does not resolve 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 Google Places API, which liberary I have to use or import as a seprate project. Also it does not resolve below too:

import com.google.android.gms.nearby

Upvotes: 4

Views: 2757

Answers (1)

Alex Chengalan
Alex Chengalan

Reputation: 8281

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

Upvotes: 5

Related Questions