Google 图书馆项目中的 Play Services LocationClient

Google Play Services LocationClient in library project

请帮助我理解我必须做什么。 我有一个使用 LocationClient class 的库(在 jar 中),但现在 LocationClient 已被弃用并且在 GooglePlayServices 中不可用。如果有人会尝试将我的库添加到项目中并在依赖项中设置最新版本的 GooglePlayServices 而不是 ClassNotFoundException 之类的东西?我该如何解决这个问题?如果我更改使用 GoogleApiClient 的代码,那么大多数不更新 GPS 最低版本的应用程序将无法与我的库一起使用?或者我可能遗漏了什么?

LocationClient 已被删除。您应该更新您的库以使用 GoogleApiClient。我们的 developers.android.com 培训部分已更新为 set of lessons,向您展示如果您尚未将 GoogleApiClient 用于其他 Google Play 服务 API,如何从头开始。位置 API 已经成为 GoogleApiClient 的一部分一段时间了,因此您的图书馆用户不应该被要求使用最新版本的 Google Play 服务,但他们通常应该这样做。