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.
image
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”.
image
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”.
image
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.

Comments

  1. 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 !

    ReplyDelete
  2. 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.
    pause
    echo.

    ReplyDelete
  3. 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

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

    ReplyDelete
  5. 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?

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

    ReplyDelete
  7. 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

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

    ReplyDelete
  9. 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....

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

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

    ReplyDelete
  12. It works for me, thanks a lot for tutorial!

    ReplyDelete
  13. 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.

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

    ReplyDelete
  15. 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

    Bharathy

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

    mail me at
    vipul.kamboj92@gmail.com

    ReplyDelete
  17. @Vipul

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

    Thanks,
    Nishant Verma

    ReplyDelete
  18. 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

    ReplyDelete
  19. thank you for valuable information

    ReplyDelete
  20. 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
    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

    ReplyDelete
  21. I have downloaded it but it shows 'no operating system'

    ReplyDelete
  22. 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.

    ReplyDelete
  23. I am not getting any "choose package to install"

    Pls help!!!!

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

    ReplyDelete
  25. 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 !

    ReplyDelete
  26. 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

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

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

    ReplyDelete
  29. @Pankaj: What do you mean by load Data ?

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

    ReplyDelete
  31. Thanks ! It worked so nicely :)

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

    ReplyDelete
  33. AnonymousMay 29, 2012

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

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

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

    ReplyDelete
  36. plz help me i cant write the target and other stuff

    ReplyDelete
  37. AnonymousJuly 13, 2012

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

    ReplyDelete
  38. AnonymousJuly 31, 2012

    how to run apk files??

    ReplyDelete
  39. 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
    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.

    ReplyDelete
  40. @Soham Patel
    simply upgrade you system.

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

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

    ReplyDelete
  43. @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.

    ReplyDelete
  44. 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
  45. @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.

    ReplyDelete
  46. 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.

    ReplyDelete
  47. @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

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

    ReplyDelete
  49. 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

    ReplyDelete
  50. Hello,
    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...

    ReplyDelete

Post a Comment

Your comments will be reviewed and then published !

Popular posts from this blog

Defect Tracking System – Wastage of Money & Time ???

The 3 qualities that will always help you become better at almost anything…

Test Case Paths : Happy, Sad & Bad