Firebase 身份验证不起作用 - 模拟器上的“更新 Google Play 服务"消息(Android) [英] Firebase Auth not working - 'Update Google Play services' msg on the emulator (Android)

查看:26
本文介绍了Firebase 身份验证不起作用 - 模拟器上的“更新 Google Play 服务"消息(Android)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过电子邮件和密码使用 Firebase 身份验证服务.当我点击注册时,我在模拟器上收到一条警告:

I'm trying to use the Firebase Auth service with email and password. When I click on register I got an alert on the emulator that says :

"Update Google Play services : Firebase Auth won't run unless you update Google Play services"

当我查看日志时,我可以读到这两行:

When I look in the logs, I can read those 2 lines :

DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
GooglePlayServicesUtil: Google Play services out of date. Requires 9256000 but found 9080480 

在 SDK 管理器中,Google Play 服务是最新的.我怀疑这是模拟器的问题,不知何故不是最新的.

In the SDK Manager, Google Play services are up to date. I suspect it's a problem with the emulator, which somehow isn't up to date.

我使用的模拟器:Nexus 5X API 21(使用 Google API)

The emulator I'm using : Nexus 5X API 21 (with Google API)

有什么想法吗?谢谢!

推荐答案

在您的帖子中,您说在 SDK 管理器中,Google Play 服务是最新的.

独立 SDK 管理器底部 Extras 部分中显示的 Google Play 服务版本对模拟器使用的版本没有影响.模拟器在配置为包含某些特定版本的 Play 服务的系统映像上运行,这些版本并不总是最新的.

The version of Google Play Services shown in the Extras section at the bottom of the Standalone SDK Manager has no effect on the version used by an emulator. The emulators run on system images configured to contain some particular version of Play Services, which is not always the latest.

您应该确认您已经下载了最新的模拟器镜像.这些在每个 API 级别下的独立 SDK 管理器中列出,并具有以系统映像结尾的名称.仔细检查您是否下载了最新版本的 Goggle APIs...System Image 文件.然后,您需要重新创建模拟器以使用更新后的图像.

You should confirm that you have downloaded the latest emulator images. These are listed in the Standalone SDK Manager under each API level and have names that end with System Image. Double check that you have downloaded the lastest versions of the Goggle APIs...System Image files. You will then need to recreate your emulator to use the updated image.

在看到您的问题之前,我没有最新版本并尝试在 Nexus 5X API 21 模拟器上运行 Firebase Auth 9.0.2.它失败并显示类似于您报告的消息.然后我下载了最新的镜像(rev 12),现在可以成功运行了.

Until I saw your question, I did not have the latest versions and tried running Firebase Auth 9.0.2 on a Nexus 5X API 21 emulator. It failed with a message similar to what you reported. I then downloaded the latest image (rev 12) and am now able to run successfully.

这篇关于Firebase 身份验证不起作用 - 模拟器上的“更新 Google Play 服务"消息(Android)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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