如何将 Google Play 服务更新到 9.8.7 [英] How to update Google Play Services to 9.8.7

查看:27
本文介绍了如何将 Google Play 服务更新到 9.8.7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am trying to implement firebase in android project but always getting:
Google Play services out of date. Requires 9877000 but found 9683480
My graddle project/app files look like:

...
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 API) x86_64

I created Nexus S emulator with API 23 and Target: Android 6.0 (Google APIs) x86_64

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

Inside emulator Google App Services version is 9.6.83

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

What should I do to be able to run firebase as don't know what to install or update anymore :/
I am new to android and don't know if I am missing something small.

推荐答案

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

The updated Android tools (which contains the Android Emulator system image) isn't out yet. Only once that is out will your emulators have Google Play Services 9.8, which is a prerequisite for Firebase SDK 9.8.

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

If you want to test on an emulator, you will have to downgrade your app to Firebase SDK 9.6 for the moment.

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

If you deploy to a physical device, it'll likely already have the latest version.

这篇关于如何将 Google Play 服务更新到 9.8.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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