Wednesday, March 28, 2018

The Android Studio emulator doesn't work on AMD CPUs on Windows

Today I helped someone who was trying to use Android Studio's emulator but getting an error about virtualization capability: "Your CPU does not support required features (VT-x or SVM)." His CPU did support virtualization and it was enabled in the BIOS (Task Manager confirmed it); he did not have Hyper-V enabled to conflict with it. This was strange - it should have been able to virtualize just fine. Careful reading of a page on the emulator, though, revealed the problem: on Windows, their emulator only supports Intel virtualization for hardware acceleration! The person I was helping has an AMD processor.

He decided to just use a physical phone for testing. Other solutions include using the Visual Studio Emulator for Android, which is supposed to appear to Android Studio as a USB device. This is the strategy I'm using (since I have Hyper-V enabled already), but it took a lot of effort and fiddling to make it actually work.

No comments:

Post a Comment