I know there has been quite a few posts on this but all the solutions given in these posts have not worked.
I made a Android 3.2 emulator and am trying to run a hello world application. I set the device ram size to 1024(any bigger and the emulator will crash and give this error)
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.
I am on windows 7 64bit edition. As I said I am trying to run a hello world application that. I tried to use the snapshot feature to make it load faster but the emulator sits on the "android" logo page for like 5 minutes.
Even once the emulator loads up and I try to click around on backbuttons and other default applications on the emulator it is like a slideshow.
The Android Emulator is very slow. The main reason is because it is emulating the ARM CPU & GPU, unlike the iOS Simulator, which runs x86 code instead of the ARM code that runs on the actual hardware.
The running emulator takes up a lot of RAM. This leaves less for the host operating system to work with, hence the host has to deal with using virtual memory to continue running (attempts to use the internal hard disk as RAM). This greatly slows systems down.
unless you really need some of the new functionalities of 3.2 I would recommend you develop on an earlier sdk... I personally use 1.6 and 2.1 for most of my apps and the difference in load time and general emulator speed is enormous.
EDIT: especially considering you are only writing helloWorld at this present
I had this exact problem. I thought it was my hardware but I got the latest emulator and it still sometimes crashes but by taking a snapshot I've got my loading times down from 10 minutes to 1 minute.
I'd verify those times, and give you my version numbers but I run it off of external storage and it seems I've since uninstalled Java :(
It was working with the last release about 6 months ago. The rush to update Android SDK stopped about that time too, as I recall.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With