Android Studio无法解析部分Google导入问题

时间:2016-06-15 04:40:10

标签: java android import routes tracing

Android Studio无法在我的路线追踪活动中解决以下进口:

import com.google.android.gms.common.GooglePlayServicesClient;
import com.google.android.gms.common.GooglePlayServicesClient.OnConnectionFailedListener;
import com.google.android.gms.location.LocationClient;

虽然我从Anroid SDK Manager安装了Google API,但在build.gradle(模块:app)的依赖项中编译了以下内容

compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:support-annotations:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.google.android.gms:play-services:9.0.2'
compile 'com.google.android.gms:play-services-maps:9.0.2'
compile 'com.google.android.gms:play-services-location:9.0.2'
compile 'com.google.android.gms:play-services-base:9.0.2'

我会感谢任何提示或帮助。

1 个答案:

答案 0 :(得分:0)

新游戏服务版本中不推荐使用

GooglePlayServicesClient。引用:Cannot resolve symbol GooglePlayServicesClient on new Android Studio Project

LocationClient已替换为新的FusedLocationProviderApi。引用Android play services 6.5: LocationClient is missing