Install Eclipse and the Android Development Tools (ADT) plug-in

How to install and configure the Eclipse IDE with the Android Development Tools plug-in.

To build the GWC hybrid mode for Android, you need to install and configure the Eclipse IDE and the Android Development Tools plug-in. It allows you to build, modify, and deploy applications.

  1. Install the classic edition of the Eclipse IDE. Download the Eclipse classic software from the Eclipse web site at http://www.eclipse.org/downloads/packages/eclipse-classic-42/junor.
  2. Install the Java™ Runtime Environment (JRE) to execute Eclipse. Download the JRE software from the Java web site at http://www.java.com/en/download.
  3. Install Eclipse classic updates.
    1. Open the Eclipse IDE.
    2. Select Help >> Check for Updates.
    3. Install all available updates.
  4. Download and install the Android Development Tools (ADT) plug-in. The ADT plug-in gives you a powerful, integrated environment for Android application development. Follow the instructions for downloading and installing the ADT plug-in, provided on the Android Developer site at http://developer.android.com/sdk/installing/installing-adt.html.
  5. Install the Android SDKs.

    The Android SDK provides you the API libraries and developer tools necessary to build, test, and debug apps for Android. The GWC hybrid mode for Android has been developed with the Android SDK 4.0.3.

    1. Restart the Eclipse IDE.
    2. When prompted, select Yes to download the latest Android SDK.
    3. Accept terms.
    4. Click on the Android SDK Manager icon and install the Android SDK 4.0.3 (API 15).
  6. Install and configure material acceleration for Android emulators. Android emulators can run slow and are not usable in development environments. Android emulators can load another architecture to have Intel™ material accelerations.
    1. Install the Intel Hardware Accelerated Execution Manager package in the extras folder in the Android SDK Manager. This package is needed for VM accelerations and to optimize performance when using the emulator. It is needed for creating an Android Virtual Device (AVD). The package installation creates an extras folder in the Android SDK folder.
    2. Enable the Virtual Technology option in your computer BIOS. You can now execute the file located in android-sdks, usually installed in the user home folder.
    3. Run and install the IntelHaxm file located in the path extras/intel/Hardware_Accelerated_Execution_Manager.
  7. Create an Android Virtual Device (AVD). You must have an Android emulator to modify and debug the GHC code.
    1. Click on the Android Virtual Devices Manager. Follow the steps to create an Android Virtual Device described at http://developer.android.com/tools/devices/managing-avds.html. When you create the Android Virtual Device, select the Intel Atom (x86) option for the CPU/ABI. The Android emulator is ready to use. For more details, see http://developer.android.com/tools/devices/emulator.html.