如何在 Android Studio 的模拟器上更新 Google Play 服务 [英] How to update Google Play Services on the emulator in Android Studio

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

问题描述

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

我被困在这里,因为根据我的 SDK 管理器,我拥有最新的 google play 服务

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

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

解决方案

自从谷歌推出

从 26.0.3 开始

<块引用>
  • 在显示 Play 服务版本的 Google Play 商店图片的扩展窗口中添加了一个新标签,以及一个用于检查 Play 服务更新的按钮.

确保您在安装了 playstore 的情况下使用模拟器.检查您是否安装了 sdk manager -> 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

  • Adds a new tab in the extended window for Google Play Store images that displays the Play Services version and a button to check for updates to Play Services.

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 服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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