最近升级了Android Studio,升到了Android Studio Arctic Fox | 2020.3.1,本来一直好好的模拟器运行不了了,一直报错:The emulator process for AVD XXX has terminated

一、原因分析
问题出现后,在网上百度了好久,没有解决。然后就想着自己找找原因,看是哪里出了问题。
1、在Mac的terminal命令行里,执行启动模拟器命令
我们找到模拟的文件,找到启动模拟器命令

找到emu-launch-params.txt文件,里面是启动模拟器命令
/
/Users/jinxiyang/Library/Android/sdk/emulator/emulator
7
/Users/jinxiyang/Library/Android/sdk/emulator/emulator
-netdelay
none
-netspeed
full
-avd
Pixel_2_API_29
处理一下换行之后:
//Users/jinxiyang/Library/Android/sdk/emulator/emulator 7 /Users/jinxiyang/Library/Android/sdk/emulator/emulator -netdelay none -netspeed full -avd Pixel_2_API_29
打开Macterminal,运行上面命令:

至此发现了报错原因:
报错原因:
Mac版本过低,新的模拟器emulator,需要在MacOS 11.1以上版本才能运行
二、解决方法
解决方法:
升级MacOS到 MacOS Monterey 12.0.1
打开下面链接,自动跳转到 APP Store 获取页
https://apps.apple.com/cn/app/macos-monterey/id1576738294?mt=12
网友评论