I am getting this error “your cpu doesn't supp

2019-01-14 17:48发布

问题:

I have enabled the virtualization in bios setup but when i try to launch the emulator i am getting the error "your cpu doesn't support vt-x or svm"

I have installed Intel haxm too.

回答1:

The VT-x technology as well as the HAXM are unique to Intel processors. In the case of AMD processors, AMD-V is the counterpart in the virtualization tech front. Installation of HAXM in an AMD processor will not have any impact and hence the error "your cpu doesn't support vt-x or svm".

Reference link: http://tools.android.com/tech-docs/emulator

As stated in the link above

For best performance with Android Emulator 2.0, your system should meet the following specifications: Windows: Intel® processor with support for Intel® VT-x, Intel® EM64T (Intel® 64), and Execute Disable (XD) Bit functionality. AMD and Intel Atom processors do not support VT-x virtual machine acceleration. Linux: Intel® processor with support for Intel® VT-x, Intel® EM64T (Intel® 64), and Execute Disable (XD) Bit functionality or AMD processors with support for AMD Virtualization™ (AMD-V™) 64-bit Operating Systems.

I would suggest to use an ARM image for the emulator instead of an Intel image. This would not require the use of HAXM nor VT-x.



回答2:

I've been trying to track this down myself for a while (very similar setup, but Windows 10), and haven't seen anyone offering a solution beyond "You know HAXM's just for Intel, right?" either. The best info I've found so far is that the "Individual" edition of Genymotion (free for personal use) seems to be the best bet for emulation on AMD chips, and, almost hidden, a mention in the official docs that suggests Android Studio only works with SVM on Linux. I'm not even sure I'm reading the latter right, given the complete lack of references elsewhere to what should be an important fact, but it could be why that error is showing up – though if that's the case, it's definitely poorly worded.



回答3:

If your processor is AMD, it will not work better to use the emulator of genymotion or nox app player.

this video may help you.

https://www.youtube.com/watch?v=qKFFjFE8U8E&t=365s

and if you use ARM image it will take to much time.