谷歌播放服务08年5月2日的版本太新了我的设备 [英] Google Play Services version 5.2.08 too recent for my device

查看:322
本文介绍了谷歌播放服务08年5月2日的版本太新了我的设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用这个方法来检查播放服务的可用性:

 私人布尔checkPlayServices(){
    INT状态= GooglePlayServicesUtil.isGooglePlayServicesAvailable(本);
    如果(状态!= ConnectionResult.SUCCESS){
        如果(GooglePlayServicesUtil.isUserRecoverableError(状态)){
            showErrorDialog(状态);
        } 其他 {
            Toast.makeText(这一点,不支持此设备。,Toast.LENGTH_LONG).show();
            完();
        }
        返回false;
    }
    返回true;
}
 

状态现在设置为2,当我运行的应用程序,这表明已安装的播放服务需要更新,即使打店里有没有更新的存储中播放服务。

isUserRecoverableError 调用的对话框说:

  

更新谷歌Play业务 - 该应用程序将无法运行,除非您更新   谷歌播放服务

这是发生之后我通过SDK管理器,它更新的谷歌库更新了我的Andr​​oid SDK(而不是,如果我没有记错,谷歌播放服务,虽然一个是昨天更新,没有任何麻烦)。

Android的工作室告诉我,播放服务的版本是08年2月5日。

我能做些什么?我能否例如强制较低版本的依赖关系部分?

 编译com.google.android.gms:玩-服务:+
 

解决方案

原帖中的问题


我指定的previous版本,我记得看到在应用程序/ build.gradle 和我的应用程序现在运行正常:

 编译com.google.android.gms:玩-服务:5.0.89
 

I use this method to check the availability of play services:

private boolean checkPlayServices() {
    int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
    if (status != ConnectionResult.SUCCESS) {
        if (GooglePlayServicesUtil.isUserRecoverableError(status)) {
            showErrorDialog(status);
        } else {
            Toast.makeText(this, "This device is not supported.", Toast.LENGTH_LONG).show();
            finish();
        }
        return false;
    }
    return true;
}

status is now set to 2 when I run the app which indicates that the installed play services need an update, even though the play store has no update in store for the play services.

The dialog from the isUserRecoverableError invocation says:

Update Google Play services - This app won't run unless you update Google Play services

This is happening right after I updated my Android SDK through the SDK Manager which updated "Google Repository" (and not, if I recall correctly, "Google Play Services", though that one was updated yesterday without any trouble).

Android Studio tells me that the play services version is 5.2.08.

What can I do? Can I for example force a lower version in the dependencies section?

compile 'com.google.android.gms:play-services:+'

解决方案

Originally posted in the question


I specified the previous version I remember seeing in app/build.gradle and my app runs fine now:

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

这篇关于谷歌播放服务08年5月2日的版本太新了我的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆