How Can I Install Eclipse with the ADT (Android Development Tool) on Ubuntu 11.10 64-bit?

There is the Android documentation:

And there is this WordPress blog I found:

Neither worked for me out of the box. But by piecing together bits and pieces from other sources, I think I have managed to configure Eclipse to run with the ADT plugin. I will post a step-by-step guide here with my source.

There is also this nicely detailed step-by-step guide for Ubuntu 10.10 listed in another question that deserves mention:

Again, I don't think the steps listed there will work for 11.10 64-bit, but it offers an excellent overview of the process in general.

1

1 Answer

1. Install Java Packages

  • sudo add-apt-repository ppa:ferramroberto/java
    sudo apt-get update
    sudo apt-get install sun-java6-jdk sun-java6-plugin

2. Install ia32-libs

  • sudo apt-get install ia32-libs

3. Select Correct Version of JVM using update-alternative

(install update-alternative with apt-get if necessary)

  • sudo update-alternatives --config java

    then select the number for: /usr/lib/jvm/java-6-sun/jre/bin/java

4. Install Eclipse

I installed this version as recommended by google:

  • This is a guide for 64-bit Ubuntu, so make sure to get the 64-bit version

    Download, unzip, double-click eclipse file in root dir to launch

5. Install SDK Start Package

I just followed the Android docs here:

6. Install Android Platforms

  • Double click android-sdk-linux/tools/android

7. Install ADT Plugin

Follow steps for downloading and configuring:

8. Add these lines to bottom of .bashrc

  • export PATH=${PATH}:~/android-sdks/platform-tools
    export ANDROID_SDK_HOME=~/android-sdks/platform-tools
    export PATH=$PATH:$ANDROID_SDK_HOME

    To edit:

    gedit ~.bashrc

    type in lines above with correct paths:

    source ~/.bashrc` 

9. Restart Eclipse

If successful, you should see no errors on startup and console panel will say: Android

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like