问题描述
我试图在android项目中实现firebase,但总是得到:
Google Play服务过期 。 需要9877000,但找到了9683480
我的graddle项目/应用程序文件看起来像:
...
编译'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'
和
依赖项{
classpath'com.android.tools.build:gradle:2.2.2'
classpath'com.google.gms:google-services:3.0.0'
我使用 API 23 创建了 Nexus S 和Target: Android 6.0(Google API)x86_64
$ b 内部模拟器Google App Services版本为 9.6.83
我应该怎么做才能运行firebase,因为不知道要安装或更新什么:/
我Android新手机,不知道是否缺少一些小的东西。
更新的Android工具(包含Android仿真器系统映像)还没有出来。只有一次,您的模拟器才会具有Google Play Services 9.8,这是Firebase SDK 9.8的先决条件。
如果您想在模拟器上测试,将您的应用降级到Firebase SDK 9.6。
如果您部署到物理设备,它可能已经具有最新版本。 b $ b
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'
and
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.google.gms:google-services:3.0.0'
I created Nexus S emulator with API 23 and Target: Android 6.0 (Google APIs) x86_64
Inside emulator Google App Services version is 9.6.83
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.
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.
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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!