1

when I start a new emulator it comes this:

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.

how to repair it?

mudoot
  • 51
  • 1
  • 2
  • 5

3 Answers3

2

This question suggests that this problem occurs when you are using too much RAM.

Community
  • 1
  • 1
James Lim
  • 12,915
  • 4
  • 40
  • 65
1

This blog post suggests that you should lower the amount of RAM you allocated to your AVD.

Glendon Trullinger
  • 4,052
  • 1
  • 28
  • 35
  • I just use the default settings for RAM. How could it happen? – mudoot Jul 12 '11 at 07:23
  • How much RAM do you have in your computer and how much is allocated to the AVD? Have you tried lowering it to see if that fixes the problem? – Glendon Trullinger Jul 12 '11 at 17:55
  • How to know how much RAM in my computer ? HOHO , forgive a noob. @Glendon Trullinger – mudoot Jul 13 '11 at 03:39
  • RAM/memory... If you run Windows, you can run dxdiag to check. Just try lowering the RAM used by your AVD to 256MB or some number smaller than it is currently to see if it helps. On my emulator, there is no "default" amount of memory. – Glendon Trullinger Jul 13 '11 at 05:12
  • I solved it. It depend on eclipse settings `-Xms128m -Xmx512m` – mudoot Jul 26 '11 at 02:06
  • for additional info: check this link also. http://stackoverflow.com/questions/11667907/android-emulator-failed-to-allocate-memory-8 it works for me – Praveen Aug 14 '12 at 10:03
0

As I mention here: https://stackoverflow.com/a/14420779/1993898

I was able to fix this error by running AVD "as Administrator", therefore I believe this error to be related to filesystem permissions, or lack thereof.

Community
  • 1
  • 1
Prymaldark
  • 141
  • 5