【问题标题】:How to update Google Play Services through adb?如何通过 adb 更新 Google Play 服务?
【发布时间】:2014-07-07 20:03:32
【问题描述】:

当我在使用过时的设备上测试过的设备时,我及时用新的谷歌地图实现了一个应用程序。当我使用新的 Google Play 服务作为依赖库项目在 Eclipse 上构建 apk 时,它工作正常(如 Google Play services out of date. Requires 3025100 but found 2012110 所述)。但是,当我用 Android.mkgoogle-play-services.jar 作为由脚本应用程序构建的 LOCAL_STATIC_JAVA_LIBRARIES 构建 apk 时,会崩溃并且 GooglePlayServicesUtil 抛出错误:

Google Play services out of date.  Requires 4452000 but found 4034530

正如预期的那样,以下陈述是正确的:

GooglePlayServicesUtil.isGooglePlayServicesAvailable(context) == ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED

是否可以使用 adb 更新设备上的 Google Play 服务(无法将设备直接连接到 Internet)?或者也许还有其他合适的解决方案?

【问题讨论】:

    标签: android google-maps adb google-play-services


    【解决方案1】:

    解决方法很简单。您必须简单地安装 Google Play Services.apk,此处提供(版本 4.4.52):[APK Compendium] Google Play Services 4.4.52 for All Densities, and the Rest of This Week’s Updates

    我现在有java.lang.NoClassDefFoundError: com.google.android.gms.R$styleable,而我正在尝试扩充地图布局 xml,但这个问题已经不在主题范围内了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-05
      • 1970-01-01
      • 2017-03-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-07
      • 2012-10-23
      相关资源
      最近更新 更多