Android Studio emulator is having issues on Windows 11
One of the most important components of the Android Studio Development SDK is the Android Emulator, which allows developers to test their applications on a wide range of virtualized hardware. However, it looks like the Android emulator was not quite ready for the release of Windows 11, as bug reports are coming in for the emulator while using Hyper-V. Fortunately, there is also a fix in development.
There are at least a few dozen reports online that the Android emulator will not start on Windows 11 (via Mishaal Rahman on Twitter) when using Hyper-V, Microsoft’s native hypervisor on Windows. The issue affects PCs with Intel or AMD processors, but emulators using the Hypervisor driver for AMD processors instead of Hyper-V are not affected. Computers running Windows 10, Linux, or macOS are also not affected by the bug.
The joys of using the new versions!
I just installed Windows 11 and the Android emulator won’t boot any image if Hyper-V is enabled, and it is unusable if you disable Hyper-V #xamarinforms # windows11 #to fail #Android
– Rodrigo Juarez (@rodrigojuarez) November 3, 2021
Apparently AVD, the Android emulator that comes with Android Studio, does not start under Windows 11, like what, there is no workaround 🙃 can that be a thing?
– Daniele Cambi (@dancamdev) November 4, 2021
I really like Windows 11 on the Surface Pro 8, but I’m having trouble with the Android emulator and after hours of Google searching I still haven’t found a great solution so I think I’ll go back to Windows 10 for now, until it’s fixed … 😕# SurfacePro8 # Windows11
-Marco (@musiolmarco) October 29, 2021
Fortunately, a fix is already in development. Microsoft developers have confirmed that the issue is an XSAVE-related bug in the Hyper-V API on Windows 11, and Google and Microsoft are working to resolve the issue. If you need a solution right now, you can either remove a line in the Android Studio emulator source code and compile it yourself, or replace a file with a precompiled version someone created.
Even though the Android Studio emulator is (partially) broken on Windows 11 at the moment, you can still run Android apps on Windows 11 through the built-in Windows Subsystem for Android. In fact, with the ability to load apps, you can even test your Android Studio projects on Windows 11 without worrying about the emulator. Google’s emulator, however, is still the best option for testing specific hardware features, such as throttle movements, custom GPS locations, foldable interfaces, and much more. And of course, if you have a physical Android device, you can connect it to your PC to test apps and games.