Installing Google Android SDK 1.0 On Ubuntu 8.04 Desktop

Want to support HowtoForge? Become a subscriber!
 
Submitted by falko (Contact Author) (Forums) on Wed, 2008-09-24 14:40. :: Android | Ubuntu | Desktop | Other

Installing Google Android SDK 1.0 On Ubuntu 8.04 Desktop

Version 1.0
Author: Falko Timme <ft [at] falkotimme [dot] com>
Last edited 09/24/2008

This guide explains how you can install the Google Android SDK 1.0 on an Ubuntu 8.04 desktop. With this stable release of the Android SDK, you can now develop applications for Android smartphones (like T-Mobile's G1) and offer them on the Android Market.

I do not issue any guarantee that this will work for you!

 

1 Preliminary Note

I'm using the user name falko with the home directory /home/falko in this tutorial. Replace them with your own details where appropriate.

 

2 Installing Java And Eclipse

Before we can install the Android SDK, we must install Java and Eclipse (version 3.3 or 3.4 - I'm using 3.4 codename "Ganymede" here).

First, we open a terminal (Applications > Accessories > Terminal):

To install Java, we type

sudo apt-get install sun-java6-bin

(If you are on a x86_64 system, you also must install ia32-libs:

sudo apt-get install ia32-libs

)

You will be asked to accept the Java license during the installation:

The Android SDK 1.0 requires Eclipse 3.3 or 3.4. Ufortunately, the Ubuntu 8.04 repositories only have a package for Eclipse 3.2 - therefore we must install Eclipse manually.

Open a browser and go to http://www.eclipse.org/downloads/. Select one of the Java, Java EE, or RCP versions of Eclipse. I've chosen the Eclipse IDE for Java EE Developers for Linux 32bit (select Linux 64bit if you're on an x86_64 system):

Download the file to your hard drive, e.g. the desktop (/home/falko/Desktop):

To install Eclipse, we must open a terminal again. Go to the directory where you've saved the Eclipse file and uncompress it:

cd /home/falko/Desktop/
tar xvfz eclipse-jee-ganymede-linux-gtk.tar.gz

This creates a directory called eclipse.

Afterwards, you can delete the Eclipse archive file:

rm -f eclipse-jee-ganymede-linux-gtk.tar.gz

My eclipse directory is now located on my desktop (/home/falko/Desktop) - I don't want it there, so I move it to my home directory (you can leave it where it is or move it to whatever directory you prefer):

mv eclipse ~

Inside the eclipse directory, there is an executable called eclipse - that's the file we must run when we want to start Eclipse. Obviously, we don't want to do this from the command line, so we create a launcher for it.

Right-click on Applications and select Edit Menus:

Select Programming (or whatever category you want the launcher to be located in) and click on New Item:

Type in the name of the application (e.g. Eclipse) and the full path to the eclipse executable (/home/falko/eclipse/eclipse in my case) and click on OK:

Then leave the menu editor:

Now we can use the launcher to start Eclipse (Applications > Programming > Eclipse):

Eclipse is starting up...

... and asking for a workspace (you can accept the default one):

This is how Eclipse looks:

On to the Android SDK installation...


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by T (not registered) on Fri, 2011-04-22 15:47.

Good walk through. 

Very Informative. 

Submitted by migge (not registered) on Sun, 2009-07-26 12:21.
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
Submitted by mike (not registered) on Thu, 2010-02-25 17:34.
Submitted by Fov (not registered) on Thu, 2009-04-23 04:24.
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.
Submitted by Anonymous (not registered) on Thu, 2009-01-29 14:03.
Currently there is a newer version of the SDK out: How to install Android SDK 1.0_r2 with Eclipse
Submitted by Anonymous (not registered) on Wed, 2008-10-01 19:44.

This is basically what Google provides in their documentation:

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

Submitted by scott (not registered) on Sun, 2008-09-28 19:47.
Submitted by Anonymous (not registered) on Sun, 2008-09-28 15:40.

"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.

Submitted by Westchester Com... (not registered) on Fri, 2008-09-26 09:21.
Great walk through!
Submitted by Anonymous (not registered) on Thu, 2008-09-25 15:51.

Great posting. very helpful tips.

 

Submitted by thanhthanhangia (registered user) on Wed, 2011-06-08 02:48.

Re: Great posting. very helpful

yes i think so