【问题标题】:Failed to launch Pixel 2 API 31: Error: Emulator didn't connect within 60 seconds (Flutter Project on VS Code in a Apple Silicon Mac)无法启动 Pixel 2 API 31:错误:模拟器在 60 秒内未连接(Apple Silicon Mac 中 VS Code 上的 Flutter 项目)
【发布时间】:2021-12-27 06:05:52
【问题描述】:

我一直试图在我的 Pixel 2 Android 模拟器(在我的 Apple Silicon Macbook 上)上运行我的颤振项目,但我得到了错误:

Failed to launch Pixel 2 API 31: Error: Emulator didn't connect within 60 seconds

但与此同时,我的 android 模拟器在我的 Mac 上打开了,所以我认为问题是 android 模拟器没有与 VS Code 连接。

flutter 应用程序在我的 IOS Stimulator 和我的实体 huawei android 手机上运行流畅,完全没有问题。

这是因为 Apple 硅芯片还是任何一般问题?

如果有人知道这个夹具,请告诉我。

如果您需要更多详细信息,或者您不清楚我的问题,请告诉我。

非常感谢您。

【问题讨论】:

  • 查看post
  • 我能够通过 android studio 而不是 VS Code 运行该项目。谢谢。

标签: flutter android-emulator apple-m1 apple-silicon


【解决方案1】:
  1. 打开 Android Studio。
  2. Android Studio右上角打开AVD Manager
  3. 选择操作(对于您尝试启动的模拟器),如果可以按下stop 选项,请单击stop 按钮(您正在尝试的是,如果模拟器已经在运行,则退出),如果模拟器已经停止,现在点击Wipe Data
  4. 现在尝试在您的模拟器上运行项目。这对我有用。

参考:Failed to launch emulator: Error: Emulator didn't connect within 60 seconds

【讨论】:

    猜你喜欢
    • 2020-01-22
    • 2019-09-04
    • 2021-10-24
    • 2021-08-31
    • 1970-01-01
    • 2021-12-16
    • 2015-06-07
    • 2018-02-19
    • 2021-03-14
    相关资源
    最近更新 更多