Skip to content
gnychis edited this page Oct 1, 2012 · 21 revisions

Installing Eclipse on Ubuntu

Eclipse is the main development environment for the Android application. It is used to build and install the application on the phone. To install Eclipse on Ubuntu, you can use apt-get with the following command:

sudo apt-get install eclipse

This will install Eclipse and all dependencies.


Setting up the Android SDK & NDK

After installing Eclipse, its environment must be setup to incorporate the Android SDK & NDK to properly build the project.

First, you should use the same SDK that is used to build the Android WMon Core, so initialize the core submodule:

cd android-wmon/
git submodule init
git submodule update

This should create the following directory:

android-wmon/core/android-sdk-linux

Then, enter the directory and pull down the Android SDK:

cd android-wmon/core/android-sdk-linux
./pull_platform_tools.sh

When complete, you must add the SDK and NDK tools to your path. Edit ~/.bashrc and add the following line to the end of the file, making sure to fix the actual paths:

export PATH=$PATH:/your/path/to/android-wmon/core/android-sdk-linux/platform-tools
export PATH=$PATH:/your/path/to/android-wmon/core/android-ndk-r8b-linux

You can test it by opening a new shell and checking that you can run adb:

$ adb version
Android Debug Bridge version 1.0.29


Installing the Eclipse ADT Plugin

Next, you must install the Eclipse ADT plugin and Android Platforms. These instructions were mainly lifted from the Android instructions.

  1. Go ahead and open up Eclipse, then select the menu item Help > Install New Software

  2. Click Add in the top right corner, and enter "ADT Plugin" for name, and the following location:

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

  3. Then click OK

  4. In the Available Software dialog, select the checkbox next to Developer Tools and click Next

  5. In the next window, you'll see a list of the tools to be downloaded. Click Next

  6. Accept the agreement and then click Next

  7. Restart Eclipse when the ADT plugin installation completes.

  8. Choose Use existing SDKs and click Browse to find the Android WMon SDK like the following example. After doing so, click Next and then Finish

SDK Location Image

That's it! You have the SDK setup and the platform tools were downloaded using the script in the Android WMon core.