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
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.
Download the installer from http://developer.android.com/sdk/index.html
- Install it to a location (like: C:\Program Files\Android)
- Launch “SDK Manager.exe”
- 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.
In case the Start doesn't launch the device, Navigate to folder C:\Program Files\Android\android-sdk\tools and run the command
ReplyDeleteemulator.exe @Your_Device_Name
If you close the command prompt, it will close your Device too !
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!
ReplyDeleteCreate 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.
pause
echo.
On a Windows 7 x64 machine
ReplyDeleteI 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
Yes with every new release they keep changing these things So you need to keep a watch on that !!
ReplyDelete- Nishant
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?
ReplyDeleteCan you mail me your steps , probably I can look in and mail you !
ReplyDeleteDo I need to install every by-default selected packages?
ReplyDeleteE.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
step 1, 2, 3, 5, 6.. sure :) nice though ;)
ReplyDelete@Wouto1997 Thank you :)
ReplyDeleteinvalid command-line parameter: android\android-sdk-windows\tools/emulator-arm.exe.
ReplyDeleteHint: use '@foo' to launch a virtual device named 'foo'.
please use -help for more information
pls help me....
Too good of a material. . . Thank You. . .
ReplyDeleteapplications cannot be installed on android 4.0 emulator please help! thanks
ReplyDeleteIt works for me, thanks a lot for tutorial!
ReplyDeleteMine 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.
ReplyDelete@lordryoko I am not sure why it stops there. Things to remember that the device might be slow, or increase RAM allotment !
ReplyDeleteI 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
ReplyDeleteAny 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
Bharathy
Hey, how can it be upgraded to Android 2.1 or higher??
ReplyDeletemail me at
vipul.kamboj92@gmail.com
@Vipul
ReplyDeleteYou just have to select Target as “Android 2.1" that's it !
Thanks,
Nishant Verma
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
ReplyDeletethank you for valuable information
ReplyDeletei have windows 7 ultimate 32bit and i have already installed the sdk with the following packages
ReplyDeleteAndroid 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
And
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
I have downloaded it but it shows 'no operating system'
ReplyDeleteHey 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.
ReplyDeleteI am not getting any "choose package to install"
ReplyDeletePls help!!!!
I can't select the 'target'? How can i fix this?
ReplyDeleteHey 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 !
ReplyDeletehey 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
ReplyDeleteHey vamsi the steps are almost the same as mentioned above !
ReplyDeleteTry it, if u stuck then let me know :)
hey i installed android in my win7 but i want to load data in it how can i help me
ReplyDelete@Pankaj: What do you mean by load Data ?
ReplyDeleteon clicking launch button error comes -> qemu: could not load initrd '' can you help me ?
ReplyDeleteThanks ! It worked so nicely :)
ReplyDeletenice, pretty simple and straight forward tutorial.. thanks for sharing..
ReplyDeletehey, how can i run .apk files in win 7 os??
ReplyDeleteThank you! So how do I get Google Play to work on this emulator
ReplyDeletehey SDK manager download speed too slow..like 7kbs....:(
ReplyDeletehow can i increase the speed??
plz help me i cant write the target and other stuff
ReplyDeleteI followed all the steps.Only Android word is displayed.
ReplyDeletepls help out me.
how to run apk files??
ReplyDeleteProblem Pl.Help....
ReplyDeletei 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
And
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.
@Soham Patel
ReplyDeletesimply upgrade you system.
step 3 is not working. It show me, Frailer to create directory. Please help me.
ReplyDeleteWhile installing android SDK step 3 is not working (windows 7). It show me Failer to create directory.
ReplyDeletePlease help me.
@Saiful It might be because of permission issues. Win 7 is famous for it's "Run as Administrator" stuff :)
ReplyDeleteYou might want to log in as Administrator and do the same.
i have installed whtsapp and othr app but its not connecting , connection fail occurs, nd y i cant use my laptops keybord in emulator??
ReplyDelete@Pushpak Emulator actually uses the underlying machine's network connection. I think it runs it on Edge network and not on 3G/Wi-fi.
ReplyDeleteEmulator does use your machine's hardware, whether it is cam or keyboard.
Hello sir,
ReplyDeletewhenever 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.
@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.
ReplyDeleteAlso could you check if you have emulator-arm.exe under your tools folder.
Email me at nishuverma@gmail.com
thank you so much it really worked... :)
ReplyDeletei am running eclips and when i run my android project then
ReplyDeleteconsole 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
Hello,
ReplyDeleteI 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...