本文介绍了如何在 Android Studio 中的模拟器上更新 Google Play 服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行我创建的 Android 程序,该程序可以使用电子邮件和密码通过身份验证连接到 Firebase,但似乎我什至无法进行身份验证,因为他们说我的 Google Play 服务不是最新的.

根据我的 SDK 管理器,我有最新的 google play 服务,所以我在这里很尴尬

而且我不认为这是我的代码的问题,因为当我使用我朋友的手机进行调试时它可以工作,但在我使用模拟器时却不是.

如何在 Android Studio 内置模拟器中更新我的 google play 服务.

解决方案

自从 Google 推出

从 26.0.3

  • 在显示 Play 服务版本的 Google Play 商店图片的扩展窗口中添加一个新选项卡,以及一个用于检查 Play 服务更新的按钮.

确保安装了带有 Playstore 的模拟器.检查您是否安装了 sdk 管理器 -> sdk 平台 -> Android 8 -> Google Play ...系统映像.下载它.使用该图像创建新的模拟器.

Hi I am trying to run an Android Program I have created that can connect to Firebase with Authentication using email and password but it seems that I cannot even authenticate due to the fact of them saying my Google Play Service is not up to date.

I am stump here as I have the latest google play services according to my SDK manager

and I don't think it is my code's problem as when I use my friend's phone for debugging it works but not when I am using the emulator.

How can I update my google play services in the Android Studio built-in emulator.

解决方案

Since Google introduced Google Play Store images in Android SDK Tools 26.0.0 now emulators comes with installed Google Play Store.

When creating Emulator use images that support Google Playstore (currently Nexus 5 and Nexus 5x with android O)

From 26.0.3

Edit:Make sure that you use emulator with playstore is installed. Check if you have sdk manager -> sdk platforms -> Android 8 -> Google Play ... system image installed. Download it. Create new emulator using that image.

这篇关于如何在 Android Studio 中的模拟器上更新 Google Play 服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-01 12:19