苹果硅安卓工作室模拟器:错误:找不到模拟器可执行文件



我刚刚在我的Apple M1 Macbook上安装了Android Studio 4.2.2Android Studio Preview (Arctic Fox Beta 5)

创建模拟器(arm64(时,我立即收到错误:

AVD Manager: The emulator process for AVD Pixel_4a_API_30 has terminated

然后我转到Android Studio的日志文件(帮助>在Finder中显示日志(,我发现当Android Studio尝试运行以下程序时会发生错误:

~/Library/Android/sdk/emulator/emulator -netdelay none -netspeed full -no-snapshot-load -avd Pixel_4a_API_30

输出:

emulator: Android emulator version 30.3.5.0 (build_id 7036990) (CL:N/A)
emulator: ERROR: can't find the emulator executable.

尝试了迄今为止我在网上找到的所有可能的解决方案。。。

我也遇到了同样的问题,在从m1模拟器GitHub页面读取README后找到了一个简单的解决方案。

如果我是对的,那么现在发生的情况是,您正试图启动一个为不同体系结构构建的映像。当选择图像时,您需要切换到";其他图像";选项卡,然后查找ABI列中所述的带有arm64-*的图像。之后一切都应该正常。

解决方案步骤

  1. 打开AVD管理器,然后单击+ Create Virtual Device
  2. 选择所需设备,然后单击Next
  3. 将选项卡切换到";其他图像";Android Studio Select Arm64虚拟设备映像
  4. 完成创建过程并运行您的应用程序

最新的Android Studio for Apple Chip构建修复了我的问题。

最新更新