gpt4 book ai didi

android - 如何在 Android Studio 的模拟器上更新 Google Play 服务

转载 作者:可可西里 更新时间:2023-11-01 18:45:46 26 4
gpt4 key购买 nike

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

enter image description here

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

enter image description here

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

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

最佳答案

自从谷歌推出 Google Play Store images在 Android SDK Tools 26.0.0 中,模拟器现在安装了 Google Play Store。

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

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 manager -> sdk platforms -> Android 8 -> Google Play ... 系统镜像。下载它。使用该图像创建新的模拟器。

emulator settings

关于android - 如何在 Android Studio 的模拟器上更新 Google Play 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39848314/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com