问题
I have created emulator in android studio and create little application in it. When i run it gives me an error[See image 1]. When i googled, it told me that your system does not support virtualization. But my system suport it. [See image 2].
Now my question is that when my system support virtualization then why i cannot run my app in emulator. Also please help on this following error too.
1-Intel HAXM is required to run this AVD.
2-Your CPU does not support NX.
Please anyone help to resolve this issues, thanks in advance
回答1:
(Source of answer here) First off, download Coreinfo, extract the zip in your Downloads folder, then run CMD (Not as admin), and type in:
cd Downloads
cd Coreinfo
coreinfo
Then, you should get a list of text. Scroll up/down until you find NX. If there's -
next to NX
, then it isn't enabled or it isn't supported. If there's *
and you still get the error, then you're doing something else wrong.
Then, check if NX and VT-x are enabled in BIOS:
If not, enable it. If you don't see an option, then your CPU doesn't support NX
.
After you enable it, do the first step again. You should now see *
, which means NX is enabled:
来源:https://stackoverflow.com/questions/39304849/haxm-is-required-to-run-this-avd