我正在尝试在Android Studio中学习Android开发。我安装了以下要求:

但什么都不起作用,它只会引发一个错误,并且错误显示“AVD的仿真器进程已终止”。
发布于 2021-04-29 06:11:43
随着新的macOS Big Sur 11.3更新,Android Studio中的仿真器不再运行。发生此错误的原因是Apple对虚拟机管理程序权限进行了更改。
解决问题的步骤:
cd <ANDROID_SDK_ROOT>/emulator/qemu/darwin-x86_64在我的情况下
cd ~/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64
touch entitlements.xml<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.hypervisor</key>
<true/>
</dict>
</plist>然后,
codesign -s - --entitlements entitlements.xml --force qemu-system-x86_64现在只需重新启动Android Studio,Android Emulator就应该可以再次工作了!
https://stackoverflow.com/questions/67242771
复制相似问题