Failed to Allocate Memory: 8 while starting Emulator for AVD

I got the problem on Emulator for AVD while I was trying to run the Android app in Eclipse and the Emulator doesn't want to start. The error message on Emulator for Android Virtual Device (AVD) is shown as:
Failed to allocate memory: 8
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Iam using the Eclipse and this problem is same while running in Netbeans also. Later I found that the main problem is due to the amount of RAM that is specified to the Virtual Machine. I was using the memory 1024 and when I decreased the RAM memory to 512 the error message problem has been solved.
Sometimes decreasing the RAM memory to lower than before may not work . In this case you should start the emulator from commandline. To launch the emulator from commandline just try this:
emulator-x86 -avd <your_avd_name>
Moreover sometimes the problem may occur due to the Administrative permission so you may need to open the Eclipse or Netbeans in the Administrative mode.

                                                        Hope this Helps!
                                                               RefreshIt

Failed to Allocate Memory: 8 while starting Emulator for AVD Failed to Allocate Memory: 8 while starting Emulator for AVD Reviewed by RefreshIt on 4:22:00 PM Rating: 5

No comments:

Powered by Blogger.