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 FilesAndroid)
  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.

51 Responses

  1. In case the Start doesn't launch the device, Navigate to folder C:Program FilesAndroidandroid-sdktools and run the command

    emulator.exe @Your_Device_Name

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

  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 FilesAndroidandroid-sdktools
    emulator.exe @somename
    echo I hope it works for you too, MCPD regards from albania.
    pause
    echo.

  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)Androidandroid-sdktools
    emulator.exe @somename

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

  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?

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

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

    pls help me….

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

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

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

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

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

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

  14. @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.

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

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

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

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

Comments are closed.

Back to Top
%d bloggers like this: