如何将Google Play服务更新为9.8.7

111*_*110 10 android firebase firebase-authentication

我试图在Android项目中实现firebase但总是得到:
Google Play服务已过时. Requires 9877000 but found 9683480
我的graddle项目/ app文件看起来像:

...
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'
Run Code Online (Sandbox Code Playgroud)

dependencies {
        classpath 'com.android.tools.build:gradle:2.2.2'
        classpath 'com.google.gms:google-services:3.0.0'
Run Code Online (Sandbox Code Playgroud)

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

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

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

Fra*_*len 16

更新后的Android工具(包含Android Emulator系统映像)尚未推出.只有一旦结束,您的模拟器才会拥有Google Play Services 9.8,这是Firebase SDK 9.8的先决条件.

如果您想在模拟器上进行测试,则必须暂时将应用降级到Firebase SDK 9.6.

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

  • 今天,11月10日有更新的Google API,支持使用Google Play服务9.8的模拟器.! (2认同)
  • 有人可以确认最新的谷歌api更新有效吗?我刚刚下载了Nougat v 25的最新更新,但继续得到同样的错误:"Google Play服务已过期.需要9877000但找到了9875470".但是,我现在可以在v24(MarshMallow)和v19(KitKat)系统映像上运行,所以至少我现在可以在模拟器上运行. (2认同)