【问题标题】:Google Play Services LocationClient in library project图书馆项目中的 Google Play 服务 LocationClient
【发布时间】:2015-01-13 15:12:16
【问题描述】:

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

【问题讨论】:

    标签: android location google-play-services location-client


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-29
      • 2016-02-05
      • 1970-01-01
      • 2016-12-08
      相关资源
      最近更新 更多