Google Play服务已过期。需要9877000,但发现9875480与谷歌的Firebase [英] Google Play services out of date. Requires 9877000 but found 9875480 with google firebase

查看:180
本文介绍了Google Play服务已过期。需要9877000,但发现9875480与谷歌的Firebase的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的gradle.app
apply插件:'com.android.application'

  android {
compileSdkVersion 25
buildToolsVersion25.0.0

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

defaultConfig {
applicationIdcom.example.joshpc.bluetoothattendee
minSdkVersion 19
targetSdkVersion 25
versionCode 1
versionName1.0
testInstrumentationRunnerandroid.support.test.runner.AndroidJUnitRunner
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
}
}
}

依赖{
编译fileTree(包括:['* .jar'],dir:'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2 .2',{
排除组:'com.android.support',模块:'support-annotations'
})
编译'com.android.support:appcompat-v7:25.0.0'
compile' com.google.android.gms:play-services-gcm:9.8.0'
compile'c​​om.google.gms:google-services:3.0.0'
compile'c​​om.google.firebase: firebase-auth:9.8.0'
compile'c​​om.google.firebase:firebase-core:9.8.0'
compile'c​​om.firebase:firebase-client-android:2.5.2'
testCompile'junit:junit:4.12'
}
apply plugin:'com.google.gms.google-services'

当我尝试运行我的android模拟器时,它给了我这个读出:

  W / GooglePlayServicesUtil:Google Play服务已过期。需要9877000,但找到9875480 

我试着将Firebase和Google Play服务恢复到9.6.0,作为firebase需要9.8.0



我已经在独立的SDK管理器中更新了我的API 25 Android系统映像。



我的谷歌播放存储库是最新的。



如果我改变我的gradle来调用播放服务9.8 .7它给了我错误:



所以我不太清楚如何解决这个问题或更新播放服务,当SDK说它是最新的,我不能恢复所需的版本。
请注意,安装存储库和同步不是可点击/不连接任何东西。我检查了版本库和它的最新版本。

解决方案

API level 25(7.1.1)的模拟器映像没有得到使用最新的Play服务以及其他API级别进行更新。现在,如果你想使用客户端库版本9.8.0,你应该测试对照级别21-24,因为更新是在11月11日提供给他们的。


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

解决方案

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.

这篇关于Google Play服务已过期。需要9877000,但发现9875480与谷歌的Firebase的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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