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'
我会感谢任何提示或帮助。
答案 0 :(得分:0)
GooglePlayServicesClient
。引用:Cannot resolve symbol GooglePlayServicesClient on new Android Studio Project
LocationClient
已替换为新的FusedLocationProviderApi
。引用Android play services 6.5: LocationClient is missing