Question

How do I increase the speed of the virtual device emulator in the Eclipse SDK for Android app development? I have been searching all over the internet to find out how to speed this thing up, but I can't seem to find a fix that actually works for me. Another problem I'm having is that I can't get the RAM above 1024MB.

Thanks for all the help. I have now fixed the speed. For anyone with the same problem, make sure this box is checked.

enter image description here

However, I still can't get my RAM above 1024 MB. What's the fix for that?

Was it helpful?

Solution

Method I've found which has worked on both my laptop and desktop that I use for development is when you create or edit the Android Emulator (AVD) there is an option near the bottom that says use Host GPU.

Use Host GPU

I've have found this to work on all Android versions

UPDATE I missed the bit about the RAM problem. You haven't said if there is an error regarding the memory issue, but if you seeing failed to allocate memory: 8 then you need to modify the AVD config.

Go to C:\Users\your_name.android\avd\avd_name\config.ini and find hw.ramSize and make sure that MB is on the end of the number.

OTHER TIPS

If you use an Android virtual device with Intel system image, you can enable HAXM(Hardware Accelerated Execution Manager) to speed up code execution. Take a look at this article: http://developer.android.com/tools/devices/emulator.html#acceleration

I would suggest to lower the resolution of the emulator to 320x480 and remove the skin of it (and learn the hotkeys).

If the hardware acceleration can work with your machine, try it. I've enabled it but never noticed any difference.

If that doesn't fit your needs, you can use other alternatives, which are faster, but have less features and I haven't tested them much:

  1. VirtualBox together with androidx86 - only one I've tested and debugged an app on, but it was a long time ago.
  2. Bluestacks - had lots of bugs, but seems promising.
  3. WindowsAndroid - new, works, but I can't find out how to connect via adb.
  4. Same as #1, but with androidvm instead of androidx86.
  5. Genymotion - alternative emulator.

Try using Genymotion. I think that it would be a good choice. https://cloud.genymotion.com/page/customer/login/?next=/page/launchpad/download/

You can change it to least :

enter image description here

also : and change the Screen coordinates from here :

enter image description here

note : in first step choose the Edit ,and the second step choose the start

enter image description here

Complete speed up android emulator sollution step by step cań be found also for beginners here:

Speeds Up the Slow Android Emulator

This sollution worked on my i3 machine very well. I have tested many sollutions and emulators for days, but this one is fastest and best for me.

Follow the following steps to make android emulation almost as fast as a real device.

  • Start the AVD Manager and create a new AVD with the Target value of Android 4.0.3 (API Level 15), revision 3 or higher (And choose the other settings like usual).

    1. In Eclipse, click your Android project folder and then select Run > Run Configurations...

    2. In the left panel of the Run Configurations dialog, select your Android project run configuration or create a new configuration.

    3. Click the Target tab.

    4. Select the AVD you created in the previous procedure.
    5. In the Additional Emulator Command Line Options field, enter: -gpu on
    6. Run your Android project using this run configuration.

I have tried this and i confirm the result is a noticeably fast emulator (sometimes faster than a real device).

Ref - http://developer.android.com/tools/devices/emulator.html#acceleration

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top