找不到类com.google.android.gms.location.LocationClient(机器人) [英] Can't find the class com.google.android.gms.location.LocationClient (android)
问题描述
我有下载从示范项目,<一个href="http://developer.android.com/training/location/retrieve-current.html">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.+'
这篇关于找不到类com.google.android.gms.location.LocationClient(机器人)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!