Thursday, February 9, 2012

Installing the Android SDK on Ubuntu 11.10

My harddrive failed, forcing me to reinstall my OS. I decided to upgrade to Ubuntu 11.10, so this is basically a rehash of my previous instructions for Ubuntu 11.04.

  1. Make sure that you have the 32bit compatibility libraries installed if you are using 64bit Ubuntu

  2. If you fail to install the 32bit compatibility libraries you will get an 'adb version' error at the end when you run Eclipse. If you are running 64bit Ubuntu, start out by installing the 32bit libraries

    ~$ sudo apt-get install ia32-libs

  3. Install the JDK
  4. This should be a straight forward step

    ~$ sudo apt-get install openjdk-6-jdk

  5. Download and install Eclipse
  6. Find and download an appropriate version of Eclipse. Since my last instructions for 11.04, the version of Eclipse in the Ubuntu repositories has jumped to 3.7. Hooray! Go ahead and install Eclipse

    ~$ sudo apt-get install eclipse

  7. Download and install the Android SDK
  8. Following the instructions here, which include a download link, install the SDK. You can download it with this command

    ~$ wget

    Next, untar the package

    ~$ tar -xvzf android-sdk_r16-linux.tgz

    You will need to remember where these files ended up when you install the ADT plugin for Eclipse. If you followed these instructions, you should have extracted the files to ./android-sdk-linux/

  9. Install the ADT Plugin in Eclipse
  10. The next next step historically posed me the most problems. This time proved no different. Rather than plagiarize the steps, just look here for the instructions. To summarize the steps, you must open Eclipse, add the ADT plugin location, and install the ADT plugin within Eclipse. Once installed, you must point Eclipse to the location of the Android SDK folder, previously installed.

    If you get the following error during the install

    Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 16.0.1.v201112150204-238534 ( 16.0.1.v201112150204-238534) Missing requirement: Android Development Tools 16.0.1.v201112150204-238534 ( 16.0.1.v201112150204-238534) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found

    then try running Eclipse as root.

    ~$ sudo eclipse

    and try again. This did the trick for me. It seems to be a problem on 64 bit Ubuntu with Eclipse v3.7

  11. Install Additional Android Developer Components
  12. Now, in a terminal, and go to the android-sdk-linux_x86/tools/ directory and run the Android program to open the Android SDK and AVD manager.

    ~$ cd ~/android-sdk-linux/tools/
    ~/android-sdk-linux/tools$ ./android

    You should get a window like this

    Select 'Available packages' on the left. Next, select the components that you want. Google provided a list of suggested components here. Once you have selected the packages that you want, click the 'Install selected' button on the bottom right. Depending on what you select, it may need to download several hundred mb. This can take awhile. You can find more information on using the SDK and AVD manager here.

  13. Setting up your PATH variable (Optional)
  14. In Ubuntu, you want to open your .bashrc file. A simple

    ~$ gedit ~/.bashrc

    will open the file. Next, add the following line to the end of .bashrc

    export PATH=${PATH}:(path-to-sdk)/android-sdk-linux/tools:(path-to-sdk)/android-sdk-linux/platform-tools

    replacing (path-to-sdk) with the path to where you installed the sdk. If you followed this tutorial, it will probably be in your home directory.

  15. Creating an AVD
  16. If you've made it this far, before you dive into your 'Hello World' application, you need to create an AVD, or Android Virtual Device.

    First, if you haven't already installed a platform in Step 5. Once you have a platform installed, follow the instructions here

  17. Start Programming!
  18. If all went well, you are ready to start developing an app for Android!

Some Notes

The official Android SDK instructions say you might have to fiddle with the USB settings to get your physical hardware to play nicely with the debugger. All I had to do was to enable USB Debugging under application settings on the Android device and I was on my way. That was a nice surprise.

This time around, installing the SDK went smoothly. I think the SDK and Ubuntu showed some maturity in the ease of installing the SDK. Last year I had to fight a little with things just to get anything to work.

Was this helpful?

Did this work for you? Were you able to install the SDK fine on your machine? What problems did you have?

Let me know by leaving a comment!


  1. Hi there,
    I could not find any e-mail addr to send to, so I hope you get this and perhaps able to help me.
    I have installed ubuntu 11.10 on a Ora.VBox. I tried to install JDK with the command above but it complained "unable to locate package openjdk".

    1. Is that the exact error message? If so, you have to select a version of the open jdk, such as




      If those don't help you, make sure you run a

      sudo apt-get update && sudo apt-get upgrade

      and watch for repo's that fail.

    2. Thank you for your guidelines. Really useful one.

      Learn and Update your skills in Android with

      Best Android Training Institute in Chennai
      Android Classes in Chennai

  2. This comment has been removed by the author.

  3. This page is dedicated for our Besant Technologies Reviews and Testimonials by our students. Please give your reviews here,
    Besant Tech Review

  4. This comment has been removed by the author.

  5. Enjoying your post. Keep sharing. Get job oriented salesforce training from IT expects.
    Salesforce Training

  6. The best part of Android is that you have a number of options with you, and not only some of them..!

  7. Your good knowledge and kindness in playing with all the pieces were
    very useful. I don’t know what I would have done if I had not
    encountered such a step like this.

    Android Training in Chennai

    Android Training in Bangalore

  8. Both these stages have their own upsides and downsides with regards to game improvement. Get the facts

  9. Just found your post by searching on the Google, I am Impressed and Learned Lot of new thing from your post.

    Andorid Training in Chennai | Android Training Institute in Chennai

  10. Do not waste time winning money right now we have slot games Win an online casino.

  11. Эксклюзивная лента светодиодная для подсветки дизайнерского освещения и уникальных светильников я обычно беру у Ekodio


  12. Thanks for your extraordinary blog. Your idea for this was so brilliant. This would provide people with an excellent tally resource from someone who has experienced such issues. You would be coming at the subject from a different angle and people would appreciate your honesty and frankness. Good luck for your next blog!
    Tally ERP 9 Training
    tally classes
    Tally Training institute in Chennai
    Tally course in Chennai
    seo training classes
    seo training course
    seo training institute in chennai
    seo training institutes
    seo courses in chennai
    seo institutes in chennai
    seo classes in chennai
    seo training center in chennai

  13. Thanks for your extraordinary blog. Your idea for this was so brilliant. This would provide people with an excellent tally resource from someone who has experienced such issues.
    web designing training in chennai

    web designing training in omr

    digital marketing training in chennai

    digital marketing training in omr

    rpa training in chennai

    rpa training in omr

    tally training in chennai

    tally training in omr

  14. wonderful article contains lot of valuable information. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.
    This article resolved my all queries.good luck an best wishes to the team members.learn digital marketing use these following link
    Digital Marketing Course in Chennai

  15. Really this is very good information. I really enjoyed it. Thank you for sharing the information. Keep on sharing the information.
    Python Training in chennai

    Python Course in chennai

  16. Thanks for sharing information to our knowledge, it helps me plenty keep sharing…

    Hadoop Training in bangalore
    Hadoop Training Institute In Bangalore