0

I imported a project from Eclipse to Android Studio. It uses Activity Recognition and Location Services. Now, this Android Studio project can resolve :

1) GooglePlayServicesClient(com.google.android.gms.common.GooglePlayServicesClient) and even

2) DetectedActivity(com.google.android.gms.location.DetectedActivity)

but can't resolve ActivityRecognitionClient(com.google.android.gms.location.ActivityRecognitionClient).

What might be the issue?

Aditya Gupta
  • 508
  • 3
  • 18

1 Answers1

0

I think you are not including Google play services in your project structure properly. go to your project structure and Import the latest maven for google play services

  • I followed this - [link](http://developer.android.com/google/play-services/setup.html) – Aditya Gupta Dec 18 '14 at 07:23
  • I also followed the same link. Perhaps you should check your project Structure properly and if the same problem persists then try downloading the sample from developer.android.com and Import that project directly to android studio. There after you may change the code – HimanshuGargas Dec 18 '14 at 07:48