Imported Project in Android Studio can't resolve ActivityRecognnitionClient

Deadly 提交于 2019-12-24 21:09:13

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/27541048/imported-project-in-android-studio-cant-resolve-activityrecognnitionclient

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!