Welcome to the CSC Q&A, where you can get help (and share your knowledge) about computer science!

How to fix: “HAX is not working and emulator runs in emulation mode”

+3 votes

Something like this may happen when you're trying to run your app on the emulator.

emulator: WARNING: Requested RAM size of 1536MB is too large for your environment, and is reduced to 1152MB.
emulator: device fd:564
HAX is not working and emulator runs in emulation mode
emulator: The memory needed by this VM exceeds the driver limit.
Cannot set up guest memory 'pc.ram': Invalid argument
Error accepting connection, aborting

 

asked Mar 4, 2015 in Spring 2015 by Forrest Stonedahl (3,438 points)
edited Mar 4, 2015 by Forrest Stonedahl

2 Answers

+2 votes
A quick edition to Dr. Stonedahl's answer to add a little more detail

To edit your Virtual Android Device

1) Click on the "AVD Manager" icon (located far right in the same toolbar as the run and debug icons)

2) Locate the pencil icon in the actions section to the far right of the virtual device to edit the virtual device

3) Select Show Advanced Options

4) Select RAM that is equal to or lower to what you allotted for HAX (I selected 500 MB just to be safe)

5) Make sure to hit finish not close!
answered Mar 9, 2015 by Benjamin Knapper (100 points)
0 votes
You probably need to edit your virtual android device (in the advanced settings), and give it less RAM than you gave to the HAX virtualization driver when you installed it... try 512 MB.

See also: http://stackoverflow.com/questions/21031903/how-to-fix-hax-is-not-working-and-emulator-runs-in-emulation-mode
answered Mar 4, 2015 by Forrest Stonedahl (3,438 points)
...