Google Play服务过期错误 [英] Google Play Service out of date error

查看:206
本文介绍了Google Play服务过期错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了google-play-service的问题。我正在使用Google-API进行oAuth2身份验证和日历/ Gmail信息。昨天一切正常,但今天他告诉我,我需要一个更新版本的Google PLay服务。 Android Studio今天早上更新了任何软件包。

i've got a problem with the google-play-service. I'm using the Google-API for oAuth2 Authentication and Calendar/Gmail Information. Yesterday all worked fine, but today he tells me that i need a newer Version of Google PLay Service. Android Studio had updated any packages this morning. Here is the Error-Line from Logcat if i start to contact the GoogleAPI:

09-22 11:59:01.692: W/GooglePlayServicesUtil(2819): Google Play services out of date.  Requires 9683000 but found 9452480

以下是我的grade.build:

Here is my grade.build:

apply plugin: 'com.android.application'

android {
    signingConfigs {
        config {
            keyAlias XXXXX
            keyPassword XXXX
            storeFile file(XXXX)
            storePassword XXXXX
        }
    }
    compileSdkVersion 23
    buildToolsVersion '22.0.1'
    defaultConfig {
        applicationId XXXX
        minSdkVersion 14
        targetSdkVersion 22
        signingConfig signingConfigs.config
        vectorDrawables.useSupportLibrary = true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
            signingConfig signingConfigs.config
        }
        debug {
            debuggable false
            jniDebuggable false
            signingConfig signingConfigs.config
            renderscriptDebuggable false
        }
    }
    productFlavors {
    }
}








dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile('com.google.api-client:google-api-client-android:1.22.0') {
        exclude group: 'org.apache.httpcomponents'
    }
    compile('com.google.apis:google-api-services-gmail:v1-rev48-1.22.0') {
        exclude group: 'org.apache.httpcomponents'
    }
    compile('com.google.apis:google-api-services-calendar:v3-rev212-1.22.0') {
        exclude group: 'org.apache.httpcomponents'
    }

    compile 'com.android.support:appcompat-v7:23.2.1'
    compile 'com.google.firebase:firebase-crash:9.6.0'
    compile 'joda-time:joda-time:2.4'
    compile 'com.google.android.gms:play-services-auth:9.6.0'
    compile 'pub.devrel:easypermissions:0.1.5'
    compile 'com.android.support:support-v4:23.4.0'
    compile 'com.android.support:support-vector-drawable:23.4.0'
}



apply plugin: 'com.google.gms.google-services'

我是始终使用com.google.android.gms:play-services-auth版本9.6.0。我没有得到我可以改变版本的地方。

I'm always using com.google.android.gms:play-services-auth Version 9.6.0. I dont get where i can change the version.

我尝试吐出我的版本号,它给了我213XXXX:

I tried to Toast out my Version number and it gaves me 213XXXX with:

int test = R.integer.google_play_services_version;
        String test2 = test+"";
        Toast.makeText(this,test2, Toast.LENGTH_SHORT).show();

但是错误信息显示了我不同的版本号:

But the Error Messages shows me different version numbers:

09-22 13:28:26.145: W/GooglePlayServicesUtil(3334): Google Play services out of date.  Requires 9683000 but found 9452480

非常感谢,
j。 Doe;)

Many thanks, j. Doe ;)

推荐答案

我认为有一个关于您收到的错误的公开问题 Google Play服务在API 23上过期此外,2013年,当您将SDK更新至18时,此类问题出现。只需检查链接这个问题了解更多关于它。

I think there is an open issue about the error that you receive "Google Play Services out of date on API 23" Also, this kind of issue came out during 2013 when you update your SDK to 18. Just check the link of this issue to know more about it.

我可以建议你更新你对最新版本的依赖。在更新它之后,在测试应用程序时创建一个新的虚拟设备/仿真器。尝试使用API​​ 23的x86-64版本。

What can I suggest you is update your dependency on the latest version. After you update it, create a new virtual device/emulator when testing the application. Try to use the x86-64 version of API 23.

这篇关于Google Play服务过期错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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