75662

Question:
I just created my first android project in Android studio .It is the default hello word app.When i ran it in the virtualised emulator i got the following error.Please help me sort it out.
emulator: WARNING: Requested RAM size of 1536MB is too large for your
environment, and is reduced to 1152MB.
HAX is not working and emulator runs in emulation mode
Cannot set up guest memory 'pc.ram': Invalid argument
emulator: device fd:576
emulator: The memory needed by this VM exceeds the driver limit.
Error accepting connection, aborting
Thanks in advance.
Answer1:Your HAXM is not working try reinstalling it and set the initial value(768MB recommended) of memory to less than the RAM of your computer. You need to reduce the RAM size of the emulator you are trying to run. And make sure the emulator is not exceeding the value you set while installing the HAXM. If HAXM is set to 768MB, reduce it to further and set RAM to 512MB set for it to work properly.
Android Studio:
<ol><li>Tools
-> Android
-> AVD Manager
</li>
<li>Click on Edit this AVD
</li>
<li>Show Advanced Settings
-> Memory and Storage
</li>
<li>Set RAM
to 512MB
-> Finish
</li>
</ol>Eclipse:
<ol><li>Choose your emulator device and </li> <li>ClickEdit
to edit the configurations.</li>
<li>Window
-> AVD Manager
</li>
<li>Under Memory Options
you will find RAM
options. Now set it up to a minimal value such as 512MB
.</li>
</ol>Now try running your emulator now. Hopefully it should be able to start now.