进口项目Android Studio中不能解决ActivityRecognnitionClient [英] Imported Project in Android Studio can't resolve ActivityRecognnitionClient

查看:387
本文介绍了进口项目Android Studio中不能解决ActivityRecognnitionClient的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从进口的Eclipse到Android Studio中的一个项目。它采用行为识别和位置服务。现在,这个Android Studio项目可以解析:

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),甚至

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

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

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

无法解析 ActivityRecognitionClient(com.google.android.gms.location.ActivityRecognitionClient).

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

可能是什么问题?

推荐答案

我觉得你不包括谷歌在项目结构发挥服务正常。去你的项目结构,并导入最新的Maven的谷歌播放服务

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

这篇关于进口项目Android Studio中不能解决ActivityRecognnitionClient的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆