【问题标题】:Google Play Services incompatible for Android 4.0.4Google Play 服务与 Android 4.0.4 不兼容
【发布时间】:2014-09-22 22:51:43
【问题描述】:

我正在使用 google map v2 构建一个应用,它需要 google play 服务,所以我添加了这个验证来检查它:

        int checkGooglePlayServices = GooglePlayServicesUtil
                .isGooglePlayServicesAvailable(myContext);
        if (checkGooglePlayServices != ConnectionResult.SUCCESS) {
            // google play services is missing!!!!
          /*
           * Returns status code indicating whether there was an error.
           * Can be one of following in ConnectionResult: SUCCESS,
           * SERVICE_MISSING, SERVICE_VERSION_UPDATE_REQUIRED,
           * SERVICE_DISABLED, SERVICE_INVALID.
           */
            GooglePlayServicesUtil.getErrorDialog(checkGooglePlayServices,
                    myContext, REQUEST_CODE_RECOVER_PLAY_SERVICES).show();
        }

所以事实证明我的设备 4.0.4 没有附带 google play 服务(为什么?我不知道,但它有 gmail,并且地图工作正常),当我运行应用程序时,验证工作并且带我去 Play 商店安装/更新 Google Play 服务,但是页面显示:您的设备与此版本不兼容。

如果 Google Play 服务在 Play 商店中不可用,我该如何安装它? 没有这个应用程序的安卓设备很常见吗?

谢谢,

【问题讨论】:

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


    【解决方案1】:
    • 该错误似乎表明您设备上的播放服务版本与您的应用使用的播放服务库不兼容。它在哪里说您的设备上没有播放服务。

      要确保播放服务在您的设备上运行并了解其版本,请查看Settings -> Apps -> Downloaded -> Google Play Services

    • 由于它没有让您选择更新设备上的播放服务,我会考虑在您的应用中使用匹配的播放服务客户端库。您可以在应用模块的 Android Studio build.gradle 上轻松执行此操作,方法是向您的依赖项添加确切版本,如下所示

      dependencies { compile 'com.google.android.gms:play-services:5.0.89' }

      5.0.89 替换为您在设备上找到的版本。

    【讨论】:

    • 我在 gradle 5.0.89 上安装了相同的 play-service 版本,但是我的手机没有安装任何版本,当我转到 Settings -> Apps -> Downloaded 时没有安装 google play services。跨度>
    • Play Services APK 由 Google 通过 Play 商店分发,网上可能有一些可供下载但不是通过适当的渠道。在您的屏幕截图中,Play 商店似乎建议使用不兼容的设备。您能否查看您的设备是否有可用的系统更新。或者可能是设备制造商网站。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-11-12
    • 2019-08-20
    • 2022-08-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多