Skip to content

Getting Setup with Android

Before we start talking about all of the exciting and amazing things you can do with Android we need to make sure that you have a working environment setup.  The good news is that getting setup is mostly painless.  Here are the steps:

  1. Get the Android SDK
  2. Get Eclipse
  3. Get the Android Eclipse Plugin

Let’s look at each of these steps in detail.

1. Get the Android SDK

First, we need to download the Android SDK.  You can get it here (just select your operating system).  Untar or Unzip this and put it in a folder of your choice (note the folder location, we’ll need it later).  Ironically, the latest Android SDK does not actually come with an Android SDK.  This is a little bit confusing, but Google is trying to provide us with tools to keep up to date instead of just giving us the actual SDK.  What that means for right now, however, is that we have a little bit more work to do before we actually have the SDK.  Go into the unpacked Android SDK folder and you should see a folder named Tools.  Open that and run the “Android” you find in this folder.  This should bring up the Android SDK Manager.

Screenshot-Android SDK Manager

If you click on Available Packages there should be a repository listed (in mine it lists https://dl-ssl.google.com/android/repository/repository.xml).  Check the repository and click on refresh.  It should give you a list of available Google APIs and Android SDKs.

Screenshot-Available Packages

If you get an error about not being able to access the repository via HTTPS click on the Settings Menu on the left.  Put a checkmark next to Force https://… sources to be fetched using http://… and click Save and Apply.  Go back to Available Packages and click refresh again.  Put a checkmark next to the SDK you want to install, and click install selected.  The SDK version you want is going to be determined by what is installed on your Android device (or your consumer’s android devices).  If you don’t know, just get the latest for now.  You can always come back and get other versions.

After it finishes downloading you should see the SDK listed in Installed Packages.

{ 10 } Comments

  1. nadia | December 14, 2009 at 10:30 pm | Permalink

    i love all your great tips, tricks and tutorials, thanks for such excellent information!

  2. Toufik HAMDANI | December 18, 2009 at 9:18 am | Permalink

    thank you for this tutorial. I’ll try it on ubuntu 9.04 at home.

  3. Rama | April 22, 2010 at 2:48 pm | Permalink

    Thank you very much for detailed steps. These are very helpful for beginners like me.

  4. connectware | May 21, 2010 at 11:45 am | Permalink

    what is the name of SDK file excaxtly that im suppose to path to?

  5. Rich Schupbach | July 28, 2010 at 1:25 pm | Permalink

    Any idea why my “Android SDK and AVD Manager” does not include “Settings” or “About” in the list? I’m using Eclipse 3.5.2.

    I would love to follow your advice, but without the “Settings”, I cannot select the “force https…” that you refer to.

  6. Tayyab Shabab | October 12, 2010 at 5:09 am | Permalink

    Thanks for all this information. I was trying to run Android but could not write its code using Eclipse. But after reading all this I am able to write Android code. Thanks

  7. m.k | December 9, 2010 at 11:24 am | Permalink

    thnk boss
    i am tooo just started learning
    thnx fr sharing

  8. Acharabelle | January 17, 2011 at 11:27 pm | Permalink

    I went through the steps and went to install the SDK, but it gave me the error:

    Done. Nothing was installed.
    Failed to create directory C:\Program Files\android-sdk-windows\temp

    I’m running Windows 2007 64-bit. I keep getting stuck at this same point. Does anyone have any suggestions?

    Thanks!
    acharabelle@gmail.com

  9. Sheridan | November 8, 2011 at 10:09 pm | Permalink

    If you got a failed to create directory error in Windows 7 you might try running the installer as administrator. This might just be a permissions issue.

  10. DB Thapa Magar | July 26, 2012 at 11:55 pm | Permalink

    This tutorial is great starting point for those, who want to dive into the Android Development. Thanks a lot.

{ 3 } Trackbacks

  1. [...] writing your first Android programs.  First let’s go ahead and open Eclipse, where you have already setup Android, and create a new Android Project.  Go to File -> New -> Project.  Select Android Project [...]

  2. [...] writing your first Android programs.  First let’s go ahead and open Eclipse, where you have already setup Android, and create a new Android Project.  Go to File -> New -> Project.  Select Android Project [...]

  3. [...] Create a new Android Project (2.1+) in Eclipse (If you’re not using Eclipse: Getting Setup with Android.) [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *