28 June, 2011

How to install Android Emulator on Windows

As part of my testing work, I am currently working on using webdriver to test on Android. So I had to install Android Emulator on Windows 7. Below are the sequential steps and I hope it will ease some pain on getting Android emulator on your Windows 7 box.
Download the installer from http://developer.android.com/sdk/index.html
  1. Install it to a location (like: C:\Program Files\Android)
  2. Launch “SDK Manager.exe”
  3. It will launch a “Android SDK and AVD Manager”. By default “Installed packages” will be highlighted. On the pop up “Choose Packages to Install”, there will be some packages selected already. Go ahead with the “Install”.
4.    Once it is done, select “Virtual Devices” to create one for you. Click on “New” and enter some name. Target as “Android 2.2 – API Level 8”. Select Size as “512” and “Built-in” to be “WVGA854” and click on “Create AVD”.
5. Once done select the Virtual device you created and click on Start. You can find the “Start” button on the right panel in the above shown image. Clicking “Start” will launch another pop-up, just say “Launch” and proceed.


Nishant Verma said...

In case the Start doesn't launch the device, Navigate to folder C:\Program Files\Android\android-sdk\tools and run the command

emulator.exe @Your_Device_Name

If you close the command prompt, it will close your Device too !

Anonymous said...

I know this is a shit java 7 and android 3.2, but it have to be closed first, and create a batch in windows, note you need your somename of created new (avd) in sdk manager!

Create a batch file: winandroid.bat and in properties run as administrator, add the code in right click edit of file.
title Android in Windows 7 Starting (and let it run) in console..
cd /d C:\Program Files\Android\android-sdk\tools
emulator.exe @somename
echo I hope it works for you too, MCPD regards from albania.

Anonymous said...

On a Windows 7 x64 machine
I needed to install the x86 java sdk for the android sdk to recognize.
Instead of what the person of august 29 said, I need to start a batch with the following command:
cd /d C:\Program Files (x86)\Android\android-sdk\tools
emulator.exe @somename

Anonymous said...

Yes with every new release they keep changing these things So you need to keep a watch on that !!
- Nishant

Anonymous said...

When I press the new button, create new AVD window appears but the selection for target is disable. Can u help me to fix it?

Nishant Verma said...

Can you mail me your steps , probably I can look in and mail you !

Anonymous said...

Do I need to install every by-default selected packages?
E.g. SDK Platform Android 3.2 API13, revision 1
SDK Platform Android 3.1 API12, revision 3
SDK Platform Android 3.0 API11, revision 2
SDK Platform Android 2.3.3 API10, revision 2

Or it is just matter of knowing which API's version I would be using in my development?

I probably have bad internet connection, but it is taking infinite time

Wouto1997 said...

step 1, 2, 3, 5, 6.. sure :) nice though ;)

Nishant Verma said...

@Wouto1997 Thank you :)

Anonymous said...

invalid command-line parameter: android\android-sdk-windows\tools/emulator-arm.exe.
Hint: use '@foo' to launch a virtual device named 'foo'.
please use -help for more information

pls help me....

Shashanka said...

Too good of a material. . . Thank You. . .

Anonymous said...

applications cannot be installed on android 4.0 emulator please help! thanks

Arwipus said...

It works for me, thanks a lot for tutorial!

lordryoko said...

Mine sticks on the word android but it does nothing else. Also the Android version is 4.0.3 not 2.2 as you said. The only other option is a Google one. Any help will be appreciated.

Nishant Verma said...

@lordryoko I am not sure why it stops there. Things to remember that the device might be slow, or increase RAM allotment !

Anonymous said...

I have windows 7 (x64). Installed Android 2.3. My application shows a black screen in my emulator. It does not show anything. Development environment is Flash cs5.5

Any clue why it is black? Also when I do ddms, it gives a warning saying that JAVA is not in the default path. I modified the path in user variable too, but still no luck.

Any help is greatly appreciated


Vipul Kamboj said...

Hey, how can it be upgraded to Android 2.1 or higher??

mail me at

Nishant Verma said...


You just have to select Target as “Android 2.1" that's it !

Nishant Verma

Anonymous said...

Hi lordryoko, well did u get any solution for your problem of emulator sticking on the word android , I have tried with both Android version 4.0.3 and 2.2 but the same. Plz provide me wiht the solution if u were able to rectify

ravin singh said...

thank you for valuable information

Anonymous said...

i have windows 7 ultimate 32bit and i have already installed the sdk with the following packages
Android 2.2(API 8)
Which includes the following
SDK Platform
Samples for SDK
Google APIs by Google Inc
Real 3D Add-on by LGE
Real 3D by LGE
GALAXY Tab Addon by Samsung Electronics
GALAXY Tab by Samsung Electronics
Google USB Driver Package
But still when i start the Virtual device it blacks with only Android word written on it.
Please tell me some solution to overcome this proble.
Thanks in advance

Siddharth said...

I have downloaded it but it shows 'no operating system'

Nishant Verma said...

Hey Siddharth, you might want to download the latest installer and try ... Since I wrote this blog there are many versions out but more or less steps are still the same.

Anonymous said...

I am not getting any "choose package to install"

Pls help!!!!

Swati01 said...

I can't select the 'target'? How can i fix this?

Nishant Verma said...

Hey Swati you should be able to select the target. in case you are not able to then you might want to create a new one for you !

vamshi said...

hey i had downloaded 4.1 gb offline version can u pls help mehow to install https://thepiratebay.se/torrent/6787303/Offline_Android_SDK_v4.0_2011-10-30

Nishant Verma said...

Hey vamsi the steps are almost the same as mentioned above !
Try it, if u stuck then let me know :)

Pankaj said...

hey i installed android in my win7 but i want to load data in it how can i help me

Nishant Verma said...

@Pankaj: What do you mean by load Data ?

Vijay13 said...

on clicking launch button error comes -> qemu: could not load initrd '' can you help me ?

cass said...

Thanks ! It worked so nicely :)

Raj said...

nice, pretty simple and straight forward tutorial.. thanks for sharing..

Anonymous said...

hey, how can i run .apk files in win 7 os??

aaron said...

Thank you! So how do I get Google Play to work on this emulator

Vinu rox said...

hey SDK manager download speed too slow..like 7kbs....:(
how can i increase the speed??

anmol nadeem said...

plz help me i cant write the target and other stuff

Anonymous said...

I followed all the steps.Only Android word is displayed.
pls help out me.

Anonymous said...

how to run apk files??

Soham Patel said...

Problem Pl.Help....

i have windows 7 ultimate 32bit and i have already
installed the sdk with the following packages

Android 3.2(API 13)
Which includes the following
SDK Platform
Samples for SDK
Google APIs by Google Inc
Google USB Driver Package

Also tried installing
Android 4.1 API 16
Android 4.0 API 14

But still when i start the Virtual device it blacks with only Android word written on it.

Please tell me some solution to overcome this problem.

Anonymous said...

@Soham Patel
simply upgrade you system.

saiful Islam said...

step 3 is not working. It show me, Frailer to create directory. Please help me.

saiful Islam said...

While installing android SDK step 3 is not working (windows 7). It show me Failer to create directory.
Please help me.

Nishant Verma said...

@Saiful It might be because of permission issues. Win 7 is famous for it's "Run as Administrator" stuff :)

You might want to log in as Administrator and do the same.

Pushpak Rathod said...

i have installed whtsapp and othr app but its not connecting , connection fail occurs, nd y i cant use my laptops keybord in emulator??

Nishant Verma said...

@Pushpak Emulator actually uses the underlying machine's network connection. I think it runs it on Edge network and not on 3G/Wi-fi.

Emulator does use your machine's hardware, whether it is cam or keyboard.

SNEHA said...

Hello sir,
whenever I launch the appln n start an error is on the screen Missing arch-specific emulator program: E:\androidsdk\tools/emulator-arm.exe
what do i do.

Nishant Verma said...

@Sneha , hey you need to open Android SDK Manager and then Select "ARM EABI v7a System Image" under Android 4.1 and then download it.
Also could you check if you have emulator-arm.exe under your tools folder.
Email me at nishuverma@gmail.com

SNEHA said...

thank you so much it really worked... :)

Anonymous said...

i am running eclips and when i run my android project then
console window in eclips shows
[2012-10-14 11:43:56 - newapp] HOME is up on device 'emulator-5554'
[2012-10-14 11:43:56 - newapp] Uploading newapp.apk onto device 'emulator-5554'
[2012-10-14 11:44:00 - newapp] Installing newapp.apk...
[2012-10-14 11:44:30 - newapp] Success!
[2012-10-14 11:44:30 - newapp] Starting activity com.example.android.apis.ApiDemos on device emulator-5554
[2012-10-14 11:44:31 - newapp] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.android.apis/.ApiDemos }

and emulator opens and home screen opens but my project doesn't run.
how do i will get my project or app output in emulator?
please help me

Anonymous said...

I have downloaded the latest version of "installer_r20.0.3-windows".
But when I try to install the setup error is displayed "java SE Development Kit (JDK) not found"
When I click that of the error tab it redirect me to Oracle link.
Here I can see multiple "Java files" for download.
Now I am confused which on to download.
Help me please...

Post a Comment

Your comments will be reviewed and then published !