Getting started with the Android Emulator in Android Studio or Eclipse can be a little tricky. Said another way, the sucker just won’t load! Here are some tips on firing up the emulator for your Android project.
The first bit of advice is to exercise patience in allowing the Android Emulator to load itself, especially if you have an older machine. Once you have the patience thing down, the most important issue in loading the emulator successfully is memory allocation for the Android Virtual Device. The final tip is load the emulator before running your application.
Since we want to emulator to be running and waiting for us, we begin with the Android AVD Manager.
Before continuing, let’s look at how we’re configuring the device, particularly in terms of memory allocation. This is the most important ingredient in a successful and speedy Android Emulator launch.
Notice “Memory Options” at 256MB. Start as low as you can go. Once the emulator loads successfully you should be able to increase the allotted memory. Also enabling “Use Host GPU” may help decrease load time.
We’re back in the AVD Manager (the first screenshot above) and will launch the device with the “Start” button. I like to resize the display as you see.
Things are now in motion. The black rectangle on your screen should soon take form of an Android Emulator with the first step of displaying the Android logo.
Hopefully not long after the appearance of the Android Logo you’ll see a sweet emulator ready to run your Android app.
The screen will be locked. For your application to run you’ll need to unlock the emulator by dragging the lock vertically. There. That’s what we want!
Now we’re ready to run our app.
We’ll select our emulator which is already running.