我在 Android Studio 中开发我想在其中使用位置服务的应用程序时遇到此错误。
我知道这个问题之前已经被问过,但我相信之前的问题是在 Eclipse 中开发的应用程序。
我相信这可能是 Google Play 服务设置的问题
我已按照此处的说明进行操作 http://developer.android.com/google/play-services/setup.html但我现在收到错误消息。
这可能与我之前通过 SDK 管理器在 eclipse 中安装 Google Play 服务有关吗?
任何帮助将不胜感激,谢谢
最佳答案
LocationClient
已于几个月前从 Play Services SDK 中删除。您现在使用 GoogleApiClient
、LocationServices.API
和 FusedLocationProviderApi
访问 Play 服务中的融合位置提供程序。 This sample project演示了如何从这个新 API 获取位置修复,其使用也包含在 this blog post 中。 .
关于android - 无法在 Android Studio 中解析符号 'LocationClient',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29007671/