本文介绍了Firebase Auth无法正常工作 - 在模拟器上更新Google Play服务msg(Android)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用电子邮件和密码的Firebase身份验证服务。当我点击注册时,我在模拟器上得到了一个提示:

 更新Google Play服务:Firebase身份验证不会除非您更新Google Play服务

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

  DynamiteModule:未找到com.google.firebase.auth的本地模块描述符类。 
GooglePlayServicesUtil:Google Play服务已过期。需要9256000,但找到了9080480

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



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



有什么想法?谢谢!

解决方案

在您的文章中,您可以说,在SDK Manager中,Google Play服务是最新的。 / em>



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



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



直到我看到您的问题,我没有最新版本,并尝试运行Firebase身份验证9.0.2在Nexus 5X API 21仿真器上。它失败了与您所报告的类似的消息。然后我下载了最新的图像(第12版),现在可以成功运行了。


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

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.

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

Any idea? Thanks!

解决方案

In your post you say, In the SDK Manager, Google Play services are up to date.

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.

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.

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 Auth无法正常工作 - 在模拟器上更新Google Play服务msg(Android)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-01 12:20