Saturday, March 19, 2011

How to: Install the Android SDK


  • Download the latest Android SDK (preferably the zip file not the exe).

  • Unzip the package to the root of C:\.
    NOTE: This will output a folder called "android-sdk-windows".

  • Open up the android-sdk-windows folder and launch the SDK Manager.

  • When you launch the SDK Manager for the first time it will ask for which packages to install. The only package we are concerned with at this time is "Android SDK Platform-tools, revision 3". You can reject all the others if you are not interested in them.

  • Once that is finished, you will need to install the USB drivers included with the Android SDK.
    1. Click on"Available Packages" on the left.
    2. Expand "Third party Add-ons".
    3. Expand "Google Inc. add-ons".
    4. Check "Google Usb Driver package, revision 4".
    5. Installed Selected.

  • Once that's finished installing, you can close the SDK Manager.

  • Go to the Control Panel, and select the System Properties (Windows XP) or System (Windows Vista/7).

  • Select the Advanced settings;
    • Windows XP: Click on the Advanced tab.
    • Windows Vista/7: Click on Advanced system settings on the left.

  • Click on Environment Variables.

  • Under the "System variable" section, you will look for "Path". Double-click on it.

  • In the "Variable values" section, add at the very end the location of the tools & package-tools folder, with a semicolon separating these two paths from the rest, e.g. %SystemRoot%;C:\android-sdk-windows\platform-tools;C:\android-sdk-windows\tools.

  • On the device, ensure that USB Debugging in enabled (Settings » Applications » Development).

  • Plug the device into the computer via USB cable. The computer will attempt to install the drivers automatically.

  • On success, open the command prompt on the computer, and type in the following command to sure everything is setup properly:
    adb devices

  • If it lists any devices, everything is fine and you are finished. If not, the drivers may not be installed correctly, please continue.

  • Open the Device Manager.
    1. Right-click on My Computer (Windows XP) or Computer (Windows Vista/7).
    2. Click on Manage.
    3. Click on Device Manager on the left.

  • You will probably see Unknown Device with ADB listed under it with a yellow exclamation mark.

  • Right-click on ADB.

  • Click on "Update Driver Software".

  • Click on "Browse my computer for driver software".

  • Click on "Let me pick from a list of device drivers on my computer".

  • Click on "Have Disk".

  • Click on "Browse".

  • Navigate to "C:\android-sdk-windows\extras\google-usb_driver" and select "android_winusb.inf".

  • Click on "Android ADB Interface".
    NOTE: You will get an Update Driver Warning, click on "Yes".

  • Once finished installing the driver, open the command prompt on the computer, and type in the following command to sure everything is setup properly:
    adb devices

  • If it lists any devices, everything is fine and you are finished. If not, you may have further issues and will have to do further research on your own.

  • No comments: