如何通过adb更新Google Play服务?

时间:2014-07-07 08:52:11

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

我已经使用新版Google地图及时实施了一个应用程序,当我使用过时的设备进行测试时。它工作正常,而我曾经在Eclipse上使用新的Google Play服务作为依赖库项目构建apk(如Google Play services out of date. Requires 3025100 but found 2012110所述)。但当我使用 Android.mk 构建带有 google-play-services.jar 的apk时,脚本应用程序构建的 LOCAL_STATIC_JAVA_LIBRARIES 会崩溃并且< strong> GooglePlayServicesUtil 会抛出错误:

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

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

GooglePlayServicesUtil.isGooglePlayServicesAvailable(context) == ConnectionResult.SERVICE_VERSION_UPDATE_REQUIRED

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

1 个答案:

答案 0 :(得分:0)

解决方案很简单。您必须简单安装 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充气,但这个问题不在话题。