Android 如何将Google Play服务更新至9.8.7

Android 如何将Google Play服务更新至9.8.7,android,firebase,firebase-authentication,Android,Firebase,Firebase Authentication,我试图在android项目中实现firebase,但总是得到: 谷歌播放服务已过时需要9877000,但找到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

我试图在android项目中实现firebase,但总是得到:
谷歌播放服务已过时<代码>需要9877000,但找到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'

我用API 23和目标创建了Nexus S模拟器:Android 6.0(谷歌API)x86\u 64

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

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

更新的android工具(包含android Emulator系统映像)还没有发布。只有这样,您的模拟器才会拥有Google Play Services 9.8,这是Firebase SDK 9.8的先决条件

如果你想在模拟器上测试,你必须暂时将你的应用降级到Firebase SDK 9.6


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

一个可能的演练是通过创建新的仿真器来降级仿真器的API版本(例如从23降级到20)(工具->安卓->AVD管理器->创建新的虚拟设备。在第二个屏幕上,选择您喜欢的(例如20)API版本。

最新SDK是什么意思?我安装了全新的安卓studio。在SDK管理器中没有任何更新。我安装了安卓6.0(API 23)英特尔x86 Atom 64系统映像。我还应该安装什么才能在emulator中获得最新的GPServices?嗯……我不确定具有最新播放服务的仿真器映像是否可用。让我检查一下……是的,我只是仔细检查了一下:9.8版本的仿真器映像尚未发布。目前,您需要在物理设备上进行测试或坚持使用到9.6 SDK。感谢您标记此btw!今天11月10日,有更新的Google api支持使用Google play services 9.8的模拟器!有人能确认最新的Google api的更新工作吗?我刚刚下载了Nougat v 25的最新更新,但仍然得到相同的错误:“Google Play服务过时了。需要9877000,但找到了9875470”。不过,我现在可以在v24(棉花糖)和v19(KitKat)系统映像上运行,所以至少我现在可以在emulator上运行。
dependencies {
        classpath 'com.android.tools.build:gradle:2.2.2'
        classpath 'com.google.gms:google-services:3.0.0'