简体   繁体   中英

Imported Project in Android Studio can't resolve ActivityRecognnitionClient

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM