【问题标题】:How to update Google Play Services to 9.8.7如何将 Google Play 服务更新到 9.8.7
【发布时间】:2016-10-25 20:50:43
【问题描述】:

我正在尝试在 android 项目中实现 firebase,但总是得到:
Google Play 服务已过时Requires 9877000 but found 9683480
我的 graddle 项目/应用文件如下所示:

...
compile 'com.google.firebase:firebase-core:9.8.0'
    compile 'com.google.firebase:firebase-database:9.8.0'
    compile 'com.google.firebase:firebase-auth:9.8.0'

}

apply plugin: 'com.google.gms.google-services'

dependencies {
        classpath 'com.android.tools.build:gradle:2.2.2'
        classpath 'com.google.gms:google-services:3.0.0'

我使用 API 23 和目标创建了 Nexus S 模拟器:Android 6.0 (Google APIs) x86_64

内部模拟器 Google App Services 版本是 9.6.83

我应该怎么做才能运行 firebase,因为我不知道要安装或更新什么了:/
我是 android 新手,不知道我是否遗漏了一些小东西。

【问题讨论】:

    标签: android firebase firebase-authentication


    【解决方案1】:

    更新的 Android 工具(包含 Android Emulator 系统映像)尚未发布。只有当它发布后,您的模拟器才会拥有 Google Play Services 9.8,这是 Firebase SDK 9.8 的先决条件。

    如果您想在模拟器上进行测试,您目前必须将您的应用降级到 Firebase SDK 9.6。

    如果您部署到物理设备,它可能已经拥有最新版本。

    【讨论】:

    • 最新的SDK是什么意思?我安装了新的 android studio。在 SDK 管理器中没有要更新的内容。我安装了 Android 6.0 (API 23) Intel x86 Atom 64 系统映像。我还应该安装什么才能在模拟器中获得最新的 GPServices?
    • Hmmm.... 我不确定具有最新播放服务的模拟器图像是否可用。让我检查一下……
    • 是的,我只是仔细检查了一下:9.8 的模拟器图像还没有出来。目前,您需要在物理设备上进行测试或坚持使用 9.6 SDK。感谢您标记这个顺便说一句!
    • 今天,11/10 有更新的 Google API 支持使用 google play services 9.8 的模拟器。 !
    • 有人可以确认最新的 google api 更新有效吗?我刚刚下载了 Nougat v 25 的最新更新,但继续收到相同的错误:“Google Play 服务已过期。需要 9877000,但找到了 9875470”。不过,我现在可以在 v24 (MarshMallow) 和 v19 (KitKat) 系统映像上运行,所以至少我现在可以在模拟器上运行。
    【解决方案2】:

    一个可能的演练方法是通过创建一个新的模拟器(Tools -> Android -> AVD Manager -> Create新建虚拟设备。在第二个屏幕上,选择您喜欢的(例如 20)API 版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-05-05
      • 1970-01-01
      • 1970-01-01
      • 2017-03-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多