LocationClient无法解析为某种类型

Maz*_*ian 5 gps android location

所以,基本上这是我的问题,我一直在关注此链接http://developer.android.com/training/location/retrieve-current.html

而且似乎eclipse不会识别LocationClient类,它甚至不会要求我导入它,当然我实现了GooglePlayServicesClient.ConnectionCallbacks和GooglePlayServicesClient.OnConnectionFailedListener并且我的活动扩展了FragmentActivity

我错过了什么?

此外,我发现被覆盖的onConnected()方法没有参数,我已经看到来自各地和各地的示例我看到它说onConnected(捆绑包)但我的只是拒绝有参数.任何帮助都非常感谢大家,非常感谢

Gre*_*eek 5

听起来您可能没有将Google Play Services SDK添加到您的项目中.请参阅http://developer.android.com/google/play-services/setup.html上的文档

  • 嘿@GreyBeardedGeek我已经将Google Play Services SDK添加到我的项目中,虽然有相同的错误,你能提出一些解决方案吗?提前致谢 (3认同)