添加以下变量到.zshrc
export PATH="$PATH:$HOME/Library/Android/sdk/tools"
export ANDROID_HOME=~/Library/Android/sdk
export ANDROID_SDK_ROOT=~/Library/Android/sdk
export ANDROID_AVD_HOME=~/.android/avd
function emulator { ( cd "$(dirname "$(whence -p emulator)")" && ./emulator "$@"; ) }
终端:source ~/.zshrc
emulator -list-avds
image.png
image.png
最终需要运行
/Users/jianlongnie/Library/Android/sdk/emulator/emulator-darwin-aarch64-0.2/emulator -avd Pixel2XL
image.png
以上错误要到模拟器路径下面删除以下文件:
6181638928676_.pic_hd.jpg
网友评论