In my first tutorial I will show you how to set up eclipse 3.5 with Android development tools (ADT) on Ubuntu 9.04.
Before we can install the android SDK, We must install Java. First we open a new terminal window (Applications> accessories> terminal ).
To install Java, 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
For Ubuntu 9.10 users:
Install eclipse from APT-sources, so open a terminal, then:
Sudo apt-Get install eclipse
Now open up eclipse, and go:
Help Menu-> install new software
* Add:
Https://dl-ssl.google.com/android/eclipse/
Http://download.eclipse.org/datatools/updates
Http://download.eclipse.org/webtools/updates/
Http://download.eclipse.org/modeling/emf/updates/releases/
Http://download.eclipse.org/tools/gef/updates/releases/
The http://dl.google.com/eclipse/plugin/3.5 (think this one's optional)
Install these packages, and then you can install ADT plugin as well.
We must download Android SDK, located here: http://developer.android.com/sdk/index.html
Now open a terminal again and go to the directory where you 've saved the android SDK and uncompress it, then delete the archive file:
CD/home/joeygeek/desktop
Tar xvfz android-sdk_r04-linux_86.tgz
Rm android-sdk_r04-linux_86.tgz
Move to your home directory:
Music android-sdk-linux_86/home/joeygeek
Go to window> preferences. Select Android, and add the SDK location:/home/joeygeek/android-sdk-linux_86
Click the apply and then OK.
New step we update the android API versions. Select WINDOW> Android SDK and AVD Manager
* See the end of this tutorial...
Ubuntu 9.04 users:
Ubuntu 9.04 repositories only have a package for eclipse 3.2-therefore we must install eclipse 3.5 manually, you can download it from http://www.eclipse.org/downloads.
I 've chosen the eclipse classic developers for Linux 32bit (select Linux 64bit if you're on an x86_64 system ).
Download the file and open a terminal again. Go to the directory, where you 've downloaded the eclipse file, e.g. Your desktop (/home/joeygeek/desktop), and uncompress it:
CD/home/joeygeek/desktop
Tar xvfz eclipse-SDK-3.5.1-linux-gtk.tar.gz
Afterwards the eclipse directory located on your desktop, I move it to my home directory:
MV Eclipse/home/joeygeek
Then you can delete the archive file (if you want ):
Rm eclipse-SDK-3.5.1-linux-gtk.tar.gz
Inside the eclipse directory, there is an executable file called Eclipse, that's the file you must run to start eclipse.
CD/home/joeygeek/eclipse
./Eclipse
Eclipse is asking for a workspace:
After that we must download Android SDK, located here: http://developer.android.com/sdk/index.html
Now open a terminal again and go to the directory where you 've saved the android SDK and uncompress it, then delete the archive file:
CD/home/joeygeek/desktop
Tar xvfz android-sdk_r04-linux_86.tgz
Rm android-sdk_r04-linux_86.tgz
Move to your home directory:
Music android-sdk-linux_86/home/joeygeek
Next, we must install graphical editing framework (GEF) for eclipse. You can download here: http://www.eclipse.org/gef/
You need GEF to install Android eclipse plugin later.
Download, unzip then move in to your eclipse directory:
CD/home/joeygeek/desktop
Unzip GEF-ALL-3.5.1.zip
Now we have a new eclipse directory on your desktop, move it to your "real" Eclipse directory:
MV-F Eclipse/home/joeygeek
Now start Eclipse:
CD/home/joeygeek/eclipse
./Eclipse
Next, we install the android eclipse plugin. In eclipse go to: Help> install new software
Click the Add. Button, and type https://dl-ssl.google.com/android/eclipse/ to location textbox. You can add a name your new site, e.g. Call it "android"
Then click OK. The middle of the window, there is a checkbox, select Developer Tools (automatically check Android ddms and Android developer tools)
Then click Finish. 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. select Android, and add the SDK location:/home/joeygeek/android-sdk-linux_86
Click the apply and then OK.
New step we update the android API versions. Select WINDOW> Android SDK and AVD Manager
You shoshould see that:
Sorry for Windows window, but I did not want to delete my downloaded APIs .:)))
Select All then click Install selected.
After this step you can create a new virtual device, select Window> Android SDK and AVD manager, click Virtual Devices. Introducing the android emulator, managing Android Virtual Devices (AVD )...
Original article: http://www.helloandroid.com/tutorials/how-set-eclipse-android-sdk-ubuntu-linux-904910-updated