UPDATE 2017.08.03: This should be fixed with the release of HAXM 6.1.1. Make sure you’re running the latest version of Android Studio
On a recent project I was working on, I wasn’t able to start the Android Emulator/Simulator anymore from within Android Studio. Every time I launched it from Android Studio it would start, but then – without any errors or warnings – close all by itself.
When I switched to launching the Android Emulator from the Command Line instead, I finally got to see an error message:
$ cd $(dirname $(which emulator)) && ./emulator -avd Nexus_5X_API_25 emulator: WARNING: encryption is off Hax is enabled Hax ram_size 0x60000000 HAX is working and emulator runs in fast virt mode. Failed to sync vcpu reg Failed to sync vcpu reg Failed to sync vcpu reg Failed to sync vcpu reg Failed to sync vcpu reg Failed to sync HAX vcpu contextInternal error: Initial hax sync failed
Aha, a clue! One Google Search Coupon later it turns out the thing preventing the emulator from running was that other thing using vcpu’s, namely
👉 Killing docker will let you run the Android Emulator without any problems.
I haven’t tested other suggested solutions (such as tweaking the settings of the virtual device), but at least this one did it for me.
I don’t run ads on my blog nor do I do this for profit. A donation however would always put a smile on my face though. Thanks!
Thank you! Suddenly today my Android emulator refused to start (and of course I need to get a few things done urgently), turned out that docker was the culprit (a recent update resulted in it being enabled).
Hi, for me was VBox, just for those who come into this issue and not having Docker running. Nevertheless, it lead me to look for VBox which I knew I had running.
But what can I do if I’m actually running docker containers as part of my app setup? Any ideas
I found this useful (source https://forums.docker.com/t/cant-using-docker-for-mac-with-android-emulator-haxm/8939/11):
I’ve been struggling with this issue for the past few weeks and would appreciate some help. How can I kill docker in Windows 10?
Leave a comment