侧边栏壁纸
博主头像
进一步,海阔天空 博主等级

进一步,海阔天空

  • 累计撰写 140 篇文章
  • 累计创建 19 个标签
  • 累计收到 7 条评论

目 录CONTENT

文章目录

M1版macbook无法从命令行启动android虚拟机的解决办法

海阔天空
2022-05-27 / 1 评论 / 1 点赞 / 590 阅读 / 0 字

M1版的MacBook pro已经安装了android studio,但是有的时候只想启动android模拟器来运行android程序,所以不想启动android studio,这时候想通过shell启动android虚拟机。

运行以下命令

$ANDROID_HOME/emulator/emulator -avd Nexus_5X_API_26

时出现错误:/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-aarch64’: No such file or directory

解决办法:

Download the https://github.com/google/android-emulator-m1-preview/releases/download/0.2/emulator-darwin-aarch64-0.2-engine-only.zip

unzip it

replace emulator and emulator-check to ~/Library/Android/sdk/tools/

now you can run emulator from shell

1

评论区