找不到类com.google.android.gms.location.LocationClient(机器人)找不到、机器人、google、com

2023-09-04 06:28:17 作者:待我披上婚纱i

我有下载从示范项目,http://developer.android.com/training/location/retrieve-current.html,我想我不会输给任何措施;但是我找不到哪个jar文件包含com.google.android.gms.location.LocationClient.class文件

I have download a demo project from http://developer.android.com/training/location/retrieve-current.html, and I think I don't lost any steps; But I can't find which jar file contain the "com.google.android.gms.location.LocationClient.class" file

我们发现所有的谷歌播放services.jar和maps.jar,和的android.jar(所有版本) 不包含LocationClient.class?

We found all "google-play-services.jar" and "maps.jar", and "android.jar (All versions)" don't contain the "LocationClient.class"?

推荐答案

有一些问题,最后的GPS库。你必须使用的多张最新(6 +)的旧版本。尝试使用旧版本。我什么也没看见里面的文档去precated或丢失有关 LocationClient.class

There is some problem with the last GPS lib. You have to use an older version than the latest(6.+). Try with an older version. I didn't see anything inside the doc deprecated or missing about the LocationClient.class.

compile 'com.google.android.gms:play-services:5.+'