+-
如何在Android Studio中的模拟器上更新Google Play服务
嗨,我正在尝试运行我创建的 Android程序,可以通过身份验证使用电子邮件和密码连接到Firebase,但似乎我甚至无法进行身份验证,因为他们说我的Google Play服务不是最新的.

enter image description here

根据我的SDK管理器,我在这里有最新的谷歌播放服务

enter image description here

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

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

最佳答案
由于Google在Android SDK Tools 26.0.0中引入了 Google Play Store images,现在模拟器附带已安装的Google Play商店.

创建模拟器时使用支持Google Playstore的图像(目前使用Android O的Nexus 5和Nexus 5x)

enter image description here

从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.

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

emulator settings

点击查看更多相关文章

转载注明原文:如何在Android Studio中的模拟器上更新Google Play服务 - 乐贴网