On Ubuntu 12.10, Android Emulator is too slow, how can I speed it up?
I installed SDK with
I tried to use host GPU and get some more speed, but when I launch it, there is still some lagging.
It's fairly simple, just enable kvm acceleration in these steps (linux only):
-qemu -m 512 -enable-kvm
That's it pretty much (lets not bother with gpu acceleration and other fancy stuff). When compared with classic arm version, it speeds it up tenfold.
This should be easy to setup with android studio, just go into avd manager, create x86 device and then in main menu go to Run -> Edit configuration -> Emulator (tab) -> aditional command line parameters: "-qemu -m 512 -enable-kvm".
This is not Ubuntu specific. The Android SDK's speed is terrible.
That's not a flamebait or anything, it's sadly... a fact.
There is an alternative.
Genymotion - https://www.genymotion.com/
It provides a fast phone, phone/tablet, or tablet for all your needs, with a blazing fast speed. It's not native, runs on x86 Android. So while it won't replace "real testing", it is the best way to develop. It is only free for personal use though, keep that in mind.
The installation instructions change with time, so I did not copy those out.
Genymotion is not the only option of course, it's just the one I have always been using.
You could also simply install an x86 image of Android into Virtualbox.
But Genymotion has become pretty much the industry standard - as far as I know.
v2 - 2016.
@Hany Alsamman: If you have a CPU of Intel supporting Virtual Technology you can try to install Intel Hardware Accelerated Execution Manager as well as the plugin for your Android AVD. This will really speed your Emulator up. The Virtual Technology must be enabled in BIOS section. I think you can follow the steps in this post
It's for Windows but the steps are all relevant to setup/configuration things, not really specific for Windows.