Google 播放服务过期错误
Google Play Service out of date error
我遇到了 google-播放服务的问题。我正在使用 Google-API 进行 oAuth2 身份验证和 Calendar/Gmail 信息。昨天一切正常,但今天他告诉我我需要更新版本的 Google PLay 服务。 Android Studio 今天早上更新了所有包。这是 Logcat 的错误行,如果我开始联系 GoogleAPI:
09-22 11:59:01.692: W/GooglePlayServicesUtil(2819): Google Play services out of date. Requires 9683000 but found 9452480
这是我的 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。我不知道在哪里可以更改版本。
我试图吐出我的版本号,它给了我 213XXXX 和:
int test = R.integer.google_play_services_version;
String test2 = test+"";
Toast.makeText(this,test2, Toast.LENGTH_SHORT).show();
但错误消息显示不同的版本号:
09-22 13:28:26.145: W/GooglePlayServicesUtil(3334): Google Play services out of date. Requires 9683000 but found 9452480
非常感谢,
j.母鹿 ;)
我认为有一个关于您收到的错误的未决问题“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 要了解更多信息。
我可以建议您更新对最新版本的依赖。更新后,在测试应用程序时创建一个新的虚拟 device/emulator。尝试使用x86-64版本的API 23.
我遇到了 google-播放服务的问题。我正在使用 Google-API 进行 oAuth2 身份验证和 Calendar/Gmail 信息。昨天一切正常,但今天他告诉我我需要更新版本的 Google PLay 服务。 Android Studio 今天早上更新了所有包。这是 Logcat 的错误行,如果我开始联系 GoogleAPI:
09-22 11:59:01.692: W/GooglePlayServicesUtil(2819): Google Play services out of date. Requires 9683000 but found 9452480
这是我的 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。我不知道在哪里可以更改版本。
我试图吐出我的版本号,它给了我 213XXXX 和:
int test = R.integer.google_play_services_version;
String test2 = test+"";
Toast.makeText(this,test2, Toast.LENGTH_SHORT).show();
但错误消息显示不同的版本号:
09-22 13:28:26.145: W/GooglePlayServicesUtil(3334): Google Play services out of date. Requires 9683000 but found 9452480
非常感谢, j.母鹿 ;)
我认为有一个关于您收到的错误的未决问题“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 要了解更多信息。
我可以建议您更新对最新版本的依赖。更新后,在测试应用程序时创建一个新的虚拟 device/emulator。尝试使用x86-64版本的API 23.