【问题标题】:Google Play services out of date. Requires 9877000 but found 9875480 with google firebaseGoogle Play 服务已过时。需要 9877000 但使用 google firebase 找到 9875480
【发布时间】:2016-11-12 11:19:55
【问题描述】:

这是我的 gradle.app 应用插件:'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'

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

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

我已尝试将 firebase 和 google play 服务恢复到 9.6.0,但由于 firebase 需要 9.8.0,所以这不起作用

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

我的 google play 存储库是最新的。

如果我将我的 gradle 更改为调用 play services 9.8.7,它会给我错误:

所以当 SDK 说它是最新的并且我无法恢复所需的版本时,我不太确定如何解决这个问题或更新播放服务。 请注意,“安装存储库和同步”不可点击/不链接到任何东西。我检查了存储库版本及其最新

【问题讨论】:

标签: android firebase google-play-services


【解决方案1】:

API 级别 25 (7.1.1) 的模拟器映像未随最新的 Play 服务和其他 API 级别一起更新。目前,如果您想使用客户端库版本 9.8.0,您应该针对级别 21-24 进行测试,因为更新已在 11 月 11 日提供给他们。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-07-25
    • 2013-02-15
    • 2019-09-23
    • 2015-08-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多