[Android Studio] intel-based MacOS 无法执行模拟器(AVD has terminate

解决方式:

不要升级 MacOS 到 10.15 以上更换到 windows-based 开发环境更换到新的 M1-based(arm-based) MacOS 开发环境使用实际的 Android 手机验证 App

update: 目前看起来 Android Studio Team 有尝试在改用 HVF,但我使用了他们建议的各种方式都还没成功。

TL;DR
因为年前接了个案子,要重拾荒废接近一年的 Android App 开发,于是我更新了很久没更新的 Android Studio 準备要来複习相关的东西的时候,赫然发现原本惯用模拟器先测试 App 的方式会直接出现 "AVD <Some_settings> has terminated"。而且不管怎么修都修不好。

后来怀疑是跟 Intel HAXM 没更新到新版有关,但是一点进去 SDK tools 要更新却发现: 完全无法更新

花费不少时间,然后接下来在这个 HAXM Installation Fails on Mac 找到答案:

Thanks for your feedback. Currently, HAXM only supports macOS up to 10.14. Since macOS Catalina 10.15, macOS does not support kernel extension any more. It only support new system extensions instead. You may consider to use HVF on macOS instead. Thanks.

Apple does not prohibit other hypervisors on macOS Catalina, just because kernel extensions were deprecated. HVF is just an available hypervisor that I know so far. Since Apple Catalina 10.15, macOS stopped the kernel extensions support according to this release notes and the notification.

而 Android Studio 在 intel-based MacOS 其实是靠 HAXM 这东西在跑模拟器的,而一但没有办法使用 HAXM 会变成要想办法使用其他的方式,我暂时也找不到方式更动。在时间压力下,我最后放弃在 MacBook 上面开发,改用 Windows 桌机跟实际 Android 手机开发案子。

啊啊,珍贵的执行时间就这样耗费掉了。


关于作者: 网站小编

码农网专注IT技术教程资源分享平台,学习资源下载网站,58码农网包含计算机技术、网站程序源码下载、编程技术论坛、互联网资源下载等产品服务,提供原创、优质、完整内容的专业码农交流分享平台。

热门文章