Outdated Google Play Services Error

I have a problem with google-play service. I am using the Google API to authenticate oAuth2 and Calendar / Gmail. Everything worked fine yesterday, but today he tells me that I need a new version of Google PLAY. Android Studio updated all packages this morning. Here is the error line from Logcat if I start accessing the GoogleAPI:

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

Here is my .build class:

 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' 

I always use com.google.android.gms: play-services-auth Version 9.6.0. I do not understand where I can change the version.

I tried to raise my version number and it gives me 213XXXX:

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

But the error messages show me different version numbers:

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

Thanks a lot to K. Doe;)

+7
android google-play-services updates gradle
source share
1 answer

I think there is an open problem with the error that you get " Google Play Services deprecated on API 23 ". Also, this problem was released in 2013 when you upgrade your SDK to 18. Just check the link of this problem to find out more about it.

What I can offer you is to update my dependency on the latest version. After updating it, create a new virtual device / emulator when testing the application. Try using API version 23 for x86-64.

0
source share

All Articles