Google Play services out of date. Requires 9877000 but found 9875480 with google firebase

和自甴很熟 提交于 2019-12-25 16:57:30

问题


Here is my gradle.app apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.0"

packagingOptions {
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/NOTICE'
    exclude 'META-INF/NOTICE.txt'
}

defaultConfig {
    applicationId "com.example.joshpc.bluetoothattendee"
    minSdkVersion 19
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.0.0'
compile 'com.google.android.gms:play-services-gcm:9.8.0'
compile 'com.google.gms:google-services:3.0.0'
compile 'com.google.firebase:firebase-auth:9.8.0'
compile 'com.google.firebase:firebase-core:9.8.0'
compile 'com.firebase:firebase-client-android:2.5.2'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'

When I try to run my android emulator it is giving me this read out:

W/GooglePlayServicesUtil: Google Play services out of date.  Requires 9877000 but found 9875480

I have tried reverting firebase and google play services to 9.6.0 which does not work as firebase requires 9.8.0

I have updated my API 25 android system images in the stand alone SDK manager.

My google play repository is up to date.

if I change my gradle to call for play services 9.8.7 it gives me the error:

So i'm not quite sure how to go about fixing this issue or updating the play services when the SDK says its up to date and I can't revert the version required. note that the "install repository and sync" isnt clickable/doesnt link to anything. I checked the repository version and its up to date


回答1:


The emulator image for API level 25 (7.1.1) did not get updated with the latest Play services along with the other API levels. For now, if you want to use client library version 9.8.0, you should test against level 21-24, as the update was made available for them on November 11.



来源:https://stackoverflow.com/questions/40562307/google-play-services-out-of-date-requires-9877000-but-found-9875480-with-google

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!