4
votes

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

1
For initialize gPluse client follow developers.google.com/+/mobile/android/…Jaiprakash Soni
Yes, I am following the same document, only to add google play service to the project and its respective dependencies. Not able to find the correct way to resolve the issueNeha
@JaiSoni but that still does not resolve, I need to add the Places interface..!!Neha
Resolved: I have the the jar file separately into the lib folder. Thanks :)Neha

1 Answers

5
votes

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