How to install & setup Android SDK Development Environment?

How to install & setup Android SDK Development Environment?

36

How to install and setup Android SDK Development Environment? That’s the question that I ask right now after being using Android phone for 2 years. My Android HTC HD2 and Samsung Galaxy S II do not require me to have Android SDK development environment on my PC. I can do all the thing that I want with other 3rd party tools. However, Kindle Fire does not. And it forces me to install and setup Android SDK development environment in order to do the required tasks. So here is the guide to install & setup Android SDK development environment on Microsoft Windows. By the way, you can also follow guide at Google (link) to install it other platforms like Mac OS X and Linux.

Prerequisites

  • JDK (Java Development Kit)

First of all, you need to have JDK (Java Development Kit) installed on Windows. Download JDK (Java Development Kit) here. Note – install Windows x86 version even you are on Windows 64 bits.


JDK (Java Development Kit)

Step by Step Guide

  1. Download Android SDK Tools here. (exe version is recommended)
  2. Run the downloaded installer.
  3. Follow the on screen instructions to install.
  4. Android SDK Manager will be launched at the end.
  5. Make sure that you have all the packages like screenshot below installed. (Android SDK Tools, Android SDK Platform-tools, Android API and Google USB Driver package)
  6. Note – do select Accept during Google USB Driver package installation.
  7. That’s all.


Android SDK Manager

Lastly, not a must but recommended to do so ~ add Android SDK tools and platform-tools to your PATH environment variable. It will provide easy access to the tools.


PATH environment variable

  • C:\Program Files (x86)\Android\android-sdk\platform-tools;
  • C:\Program Files (x86)\Android\android-sdk\tools;

On Windows, right-click on My Computer. Then select Properties. At Advanced tab, click on Environment Variables button. Then double-click on Path (under System Variables). Add above 2 full path directories to the path. That’s all. Note – the directory paths are taken from Windows 64 bits. There are different on 32 bits Windows.

  • Ozimandius

    Got this working too, thanks again. I downloaded and installed both AP14 and AP15 btw, to be on the safe side.

  • PTG

    thanks again . its a huge help!

  • PTG

    when´╗┐ i try to open SDK MAN it just close…why the fxx is this happin’ ?i tryed everything :S

    • http://www.jayceooi.com Jayce

      Sorry, no idea. Please consult Google Support on SDK issue.

  • Pava

    Yes I have the same on two PC. First time SDK is open when finish install bat second time now. All is isntall fine. Did you resolve this problem please?

    • http://www.jayceooi.com Jayce

      What problem?

  • rfi

    Hi Jayce, I am your silent reader so far, and your blog is veryvery helpful
    Now about Android SDK manager, none indicates Android 2.3.6. So, which one I should choose? My s2 i9100 originally was android 2.3.3 DXKI2 now KIESed 2.3.6 DXKL3 and further cfrooted DXKL3. Should I choose Android 3.0 (API11 )?

    • http://www.jayceooi.com Jayce

      Why do yo need to use Android SDK?

      • rfi

        Jayce, thanks for very fast response. I consider to install, experiment ubuntu on my sgs2, which may need java SDK (PC-side) and android SDK ? fyi I tried a bit running util ‘called’ ‘install linux’ which available on the ‘Market’. Wonder also if it is possible to dual boot?
        Thanks again

        • http://www.jayceooi.com Jayce

          I think you can use Android 2.3.3 (API10). No idea about dual boot…

  • rfi

    Thanks for advice.

  • Gus

    Hi I keep trying to download the files using the SDK manager but I keep getting the Android SDK Manager Log saying: Downloading Sources for Android SDK, API 15, revision 1
    File not found: C:\Program Files (x86)\Android\android-sdk\temp\sources-15_r01.zip (Access is denied)

    any ideas?

    • http://www.jayceooi.com Jayce

      Do you have admin right?

    • Newkid

      Try right clicking on SDK when you go to open it and choose “Run as Administrator”. I had the same problem and this difference made it work for me.

      • Joseph

        Thank you for this lol Same problem happened for me. glad I read all the comments before getting frustrated over something small

  • Markus

    In my attempt to add Android SDK tools and platform-tools to my PATH environment variable I deleted the original variable value. What was it? Do I need to fix this?

    • http://www.jayceooi.com Jayce

      Each system has different path values. Not sure what are yours.

  • shannon

    i have A 32 bit Windows. do you what i have to type in PATH ? or a link that can help?

    • http://www.jayceooi.com Jayce

      Try to Google for guide. I got it from Microsoft website.

  • Arxon

    Just a heads up. New API is out(4.0.3) I think it breaks kindle root. Will let you know after I get 4.0 api installed.

  • S

    I don’t understand… how am I supposed to add both of those variables to Path? How do I have both of them?

    • http://www.jayceooi.com Jayce

      Please Google for Microsoft guide if still don’t understand.

  • http://odau.info chung

    the problem is my SDK manager doesn’t show as the picture above but only the Tool and Extars without anything to download

    • http://www.jayceooi.com Jayce

      Remove and reinstall Android SDK Tools see.

  • http://odau.info chung

    I have removed and reinstall many times but still the same, I was tried in another computer but .. still the same

    • http://www.jayceooi.com Jayce

      Please consult Google Support in this case.

      • http://odau.info chung

        Resolved, there is the HTTP Proxy Server
        Fill in the proxy server and port will resolve the problem :”)

  • John

    Opps. I deleted the original variable value when I edited the system variables. And I can’t remember what it said. is there any way to get that line that needs to go back in. I currently have just the two that you gave, in the value. Thanks.

    • http://www.jayceooi.com Jayce

      Hi John, you can try to consult Microsoft Support to get the default values back.

  • Doofy

    For those that would like to know how to add multiple variables with the name “Path” just simply edit the existing “Path” variable and add the two Android paths required for this task. Don’t forget to seperate them with a semi-colin. I am running Win7 btw and this worked for me.

    This info doesn’t have to be so arcane, who has time to fart around with tech support, manuals, guides, Magic 8-Balls, etc….

  • jr

    Nick Burns the Computer guy on Saturday Night Live is who you remind me of with your answer on here Jayce. Not everyone is a computer geek and if you post information to help and someone is not a geek, have a little patience in your response instead of “call someone else if you dont understand”..

  • Jenny

    Have installed SDK deveopment kit (now version 9) but Android SDK Manager does not show and I can’t locate it – am new to this so would very much appreciate ANY help as I cannot install my kindle fire.
    Many Thanks

    Jenny

    • http://www.jayceooi.com Jayce

      What SDK deveopment kit (now version 9)? I don’t get it.

    • ed48

      launch bat script sdk\tools\android

  • Martin

    Have to agree with some of the previous comments – contact Microsoft- WHAT A COP OUT !
    I have a 32bit machine so the Path is completely different and although i know i have entered the correct path nothing shows in the cmd section as it’s not recognized?

    Also a warning that it’s very easy to delete the original path setting would have been handy as i also deleted the previous path as i went to type the new ones.

    Still can’t get ADB to go online and have wasted another 2 hours following this useless guide and installing god knows what onto my system

  • Pingback: Download Nexus 4 USB driver for Windows()