Installing Google Android SDK 1.0 On Ubuntu 8.04 Desktop - Page 2

3 Installing Google Android SDK 1.0

To download the Android SDK 1.0, go to http://code.google.com/android/download.html, accept the license and click on Continue:

On the next page, select the Android SDK for Linux...

... and save it to your hard disk (e.g. on the desktop):

Now open a terminal again and go to the directory where you've saved the Android SDK and unzip it:

cd /home/falko/Desktop/
unzip android-sdk-linux_x86-1.0_r1.zip

We don't need the zip file anymore, so we can delete it:

rm -f android-sdk-linux_x86-1.0_r1.zip

We now have a directory called android-sdk-linux_x86-1.0_r1. In my case it's on my desktop - I don't want it there, so I move it to my home directory (you can as well leave it where it is):

mv android-sdk-linux_x86-1.0_r1/ ~

The android-sdk-linux_x86-1.0_r1 directory contains a subdirectory called tools (/home/falko/android-sdk-linux_x86-1.0_r1/tools in my case). We must now open ~/.bashrc and add the following line to it so that android-sdk-linux_x86-1.0_r1/tools is in our PATH:

gedit ~/.bashrc

[...]
export PATH=${PATH}:/home/falko/android-sdk-linux_x86-1.0_r1/tools
[...]

Next, we must install the Android Eclipse plugin. In Eclipse, go to Help > Software Updates...:

Go to the Available Software tab and click on Add Site...:

The Add Site window opens. Fill in https://dl-ssl.google.com/android/eclipse/ and click on OK:

Back on the Available Software tab, select Developer Tools (this should automatically check Android Development Tools and Android Editors) and click on Install...:

In the Install window, make sure that both Android Development Tools and Android Editors are checked, and click on Next >:

Click on Finish next:

The plugins are now being installed:

Eclipse must be restarted for the changes to take effect, so when you are asked if you want to restart Eclipse after the installation, you should select Yes:

After Eclipse has started again, we must update our Eclipse preferences to point to the Android SDK directory. Go to Window > Preferences:

If you see this message, click on OK and forget it:

Click on Browse...

... and select the Android SDK directory (/home/falko/android-sdk-linux_x86-1.0_r1 in my case):

Back in the Preferences window, click on Apply and then OK:

That's it, you can now use the Android SDK to create your own Android applications.

Share this page:

34 Comment(s)

Add comment

Comments

From: Fov at: 2009-04-23 03:24:26

That is great.But I have a question. After the jdk6.0 was installed,the "javac" command was not contained in the /sun-java6-bin/bin folder.

From: Westchester Computer Services at: 2008-09-26 08:21:12

Great walk through!

From: Anonymous at: 2008-09-25 14:51:08

Great posting. very helpful tips.

 

From: at: 2011-06-08 01:48:32

Re: Great posting. very helpful

yes i think so

From: Anonymous at: 2008-09-28 14:40:50

"To install Eclipse, we must open a Terminal again"

 but later:

"Obviously, we don't want to do this from the command line"

 I can't figure out what the point of this is.  You don't use the helpful GUI compression program, even when offered.  Yet you won't even run a program from the same command-line.

Furthermore, this all seemed fairly obvious.  What would have been helpful would be showing how to use my own editor to build Android apps.

From: scott at: 2008-09-28 18:47:09
From: Anonymous at: 2008-10-01 18:44:14

This is basically what Google provides in their documentation:

http://code.google.com/android/intro/hello-android.html

From: Anonymous at: 2009-01-29 13:03:06

Currently there is a newer version of the SDK out: How to install Android SDK 1.0_r2 with Eclipse

From: migge at: 2009-07-26 11:21:11

Hey, i've found a german HowTo about installing Android SDK and NDK under Ubuntu. Maybe it helps someone: http://android-developers.de/Android-SDK-NDK-unter-Ubuntu-9-04-Jaunty-64bit-t

From: mike at: 2010-02-25 16:34:24
From: T at: 2011-04-22 14:47:34

Good walk through. 

Very Informative. 

From: Anonymous at: 2008-11-20 11:34:45

Thanks for such a detailed step by step info.

Just one correction:

In my case

https://dl-ssl.google.com/android/eclipse/

did not work. So i tried

http://dl-ssl.google.com/android/eclipse/

 

From: R.Karthikeyan at: 2009-01-20 04:31:30

 Hi

  Both https://dl-ssl.google.com/android/eclipse

           http://dl-ssl.google.com/android/eclipse

 

are not working it is telling no repository found

any body can help in that issue ???

thanks in advance
 

 


 

From: Anonymous at: 2009-02-21 17:19:52

try :

http://dl-ssl.google.com/android/eclipse/site.xml 

this worked for me on ubuntu 8.10 / Java 6 / Eclipse Ganymede

From: vinod at: 2009-09-01 19:03:42

i followed all the instructions thoroughly.but i am getting android ddms and android development tools for installing instead of android editors and android development tools.android editors is replaced with android ddms. please help me regarding this.

From: droidcoder at: 2009-08-03 14:00:48
From: s. das at: 2009-08-23 23:43:27

Sunday, 08/23/2009

 Many thanks for the wonderfully detailed and accurate step-by-step process (with visual aids) listed by you. Just used it to succesfully install SDK1.5 on Ubuntu 9.04 almost without a hitch! ... the one hitch being I initially used Eclipse Galileo (3.5) instead of Ganymede (3.4).  When it would load my Android DTs even with a local archive, I back tracked, downloaded Ganymede and it worked like a charm.  Again many thanks.

 P.S.  Maybe your instructions can be converted to one single PDF file ... yes?

From: cutiyar at: 2011-03-24 21:58:37

in the step : help >> install new software and i lost the internet connection in this step

http://static.howtoforge.com/images/google_android_sdk1.0_ubuntu8.04/big/28.png

,so it give the error

 http://postimage.org/image/2c82jwew4/

 

how to install it? 

i did the step again but repeated this error.

From: Anonymous at: 2011-05-27 02:06:27

Now android can running using virtualBox

From: vikram at: 2009-04-25 12:30:50

Thanks for a such nice how to. 10/10 !!

From: rio at: 2009-04-12 07:22:24

You do not need eclipse to install and develop android Application...

 Eclipse plugin is just wrapper to command line...

Take a look at my tutorial:
http://rioastamal.net/2009/04/tutorial-how-to-install-google-android-sdk-on-ubuntu-linux/

Thanks.

From: andy at: 2008-09-29 09:00:38

thanks! worked great.

From: Reid Miller at: 2008-10-10 05:00:30

Thanks for the guide! This combined with Google's excellent documentation and sweet emulator aught to keep me busy.

Thanks again!

From: Turupache at: 2008-10-04 18:53:37

- Thanks! I can't do this without you! Thanks a lot! =)

From: Matija Grabnar at: 2008-10-22 09:19:17

Clear, concise, and accurate. This is an exemplary piece of documentation that got me up and running with zero frustration.

 Thank you so very much!

From: Anonymous at: 2009-03-24 09:26:30

worked great for ubuntu 8.10 - thanks!

From: Anonymous at: 2008-11-13 19:10:10

Very clear and easy to follow. This got me going in no time. Five stars!

From: Kentamanos at: 2008-11-14 06:37:55

Great article, thanks! Just a quick FYI in case anyone else has the same problem I had (I've seen other posts on other forums about it now).

If the URL for the ADT Eclipse plugin repository doesn't work (
https://dl-ssl.google.com/android/eclipse/) try it without the https, and just http (
http://dl-ssl.google.com/android/eclipse/). That worked for me (secure version kept complaining there was no repository there).

From: Anonymous at: 2008-11-26 11:56:03

Thank you for such a detailed article.

From: Benny Iskandar at: 2009-01-11 00:34:57

Hi, I've just following steps , but it failed when performing the "Running project" action. The handset display emulator only display the text below : "Android _" .  But there is nothing happen after then . Please see the eclipse console displays the log below :

[2009-01-11 08:17:31 - Emulator] emulator: warning: opening audio output failed

[2009-01-11 08:17:31 - Emulator] [2009-01-11 08:17:31 - HelloAndroid] New emulator found: emulator-5554

[2009-01-11 08:17:31 - HelloAndroid] Waiting for HOME ('android.process.acore') to be launched...

[2009-01-11 08:17:34 - Emulator] emulator: emulator window was out of view and was recentred

[2009-01-11 08:17:34 - Emulator]

Is it because the audio output failed, so i can not continue the work ? And anybody can help me to this problem ? Thanks and need your help , please .

From: Ageless Stranger at: 2009-01-13 00:57:11

Works in ubuntu 8.10 (intrepid), perfect Howto thanks 

From: Ivan at: 2009-02-01 22:18:45

The instructions are perfect...I  have installed on ubuntu 8.10 (and all it's the same)

Testing the emulator on a centrino 1.5G it's slow (but you can see android without having to buy a phone)

From: criso at: 2009-02-24 11:56:53

Thanks for the instructions! Really helpful!

From: ashish at: 2010-11-09 04:42:41

thanx

the steps were perfect

i installed android successfully. :)