Android Emulator Can Not Start After Update To Macos Big Sur 11.3 Today
Solution 1:
This error occurs because Apple has made changes to the hypervisor entitlements. What you want to do is:
Use
/Users/<username>/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64
as the directory forqemu
Add the entitlement to the
qemu-system-x86_64
binary by:- First create an xml file named
entitlements.xml
(does not matter where) with this content:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plistPUBLIC"-//Apple//DTD PLIST 1.0//EN""http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plistversion="1.0"><dict><key>com.apple.security.hypervisor</key><true/></dict></plist>
- Then sign the
qemu
binary with it:
codesign -s - --entitlements entitlements.xml --force /Users/<username>/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64
- First create an xml file named
For more context, refer here
Solution 2:
Check 1:
If you have a Docker installed, stop that. It interrupt the emulator.
Check 2:
Try to launch your emulator from the command line, type:
cd $ANDROID_SDK_ROOT
tools/emulator -list-avds
tools/emulator @name_of_avd -verbose
The ANDROID_SDK_ROOT
environment value should point to the android SDK
location. You can find this in android studio under the menu tools
-> sdk manager
.
Check 3:
- Delete all AVD's that you currently have.
- Go to
Preferences
>>Android SDK
>>SDK Tools
- Uninstall
Android Emulator
- Restart
Android Studio
- Re-install
Android Emulator
from the same place. - And finally create a new emulator
Sidenote:
I made a documentation for AMD processors facing emulator issue on Windows
systems.
Probably something from there could help also. Give it a shot and let me know if it worked. Cheers!
PS: Make sure you installed the latest Vulkan
driver for MacOS
(Intel CPU)
Download the driver from my other Intel documentation or try this usefull post I found.
Solution 3:
Update your emulator to get rid of this issue.
Follow the steps below:
In your android studio go to SDK Manager -> SDK Tools Tab
Select Android Emulator and update it OR
Uncheck Android Emulator and apply Check Android Emulator and apply If you want to stay with the Android Emulator version below 30.5.6 you can follow the steps mentioned in the accepted answer here
Solution 4:
30.5.6 is out and it works fine. Apparently there has been any incompatibility between 30.5.5 and previous with Big Sur 11.3.
Post a Comment for "Android Emulator Can Not Start After Update To Macos Big Sur 11.3 Today"