gpt4 book ai didi

android - 无法使用 react-native 应用在 android 模拟器上登录 Google 帐户

转载 作者:行者123 更新时间:2023-12-04 17:31:49 27 4
gpt4 key购买 nike

我有 react-native 应用程序,它可以通过 Google 帐户运行。当我在 android 模拟器上启动我的应用程序时,我无法登录 Google 帐户。收到错误消息:“与 Google 服务器通信时出现问题。请稍后再试”。
我的繁殖步骤:

  • 重新安装应用程序和安卓模拟器。
  • 清理应用程序和模拟器缓存。
  • 检查具有不同 API 的不同模拟器模型。
  • 尝试从 google chrome 的 android 模拟器中登录 Google 帐户,从 Settings => Accounts => Add Account => Google。

  • 所有这些步骤都不适合我。每次都是同样的情况:加载过程中,spinner 启动了大约一分钟,之后报错:“Could not sign in”。有人可以帮我吗?

    enter image description here

    最佳答案

    我找到了决定。交易是我的模拟器没有连接到互联网。我的步骤是:

  • 检查环境模拟器路径并确保它是这样的 -
    MacOS:~/Library/Android/sdk/emulator,Windows:C:\Users%Username%\AppData\Local\Android\sdk\emulator。
  • 检查您可用的模拟器列表:emulator -list-avds。
  • 在 dns 服务器设置为 8.8.8.8 的情况下运行可用的模拟器:emulator @{YourEmulator} -dns-server 8.8.8.8。在你可以从你的安卓模拟器访问谷歌之后。
  • 关于android - 无法使用 react-native 应用在 android 模拟器上登录 Google 帐户,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58882366/

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