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
解决办法:
unzip it
replace emulator and emulator-check to ~/Library/Android/sdk/tools/
now you can run emulator from shell
评论区