2.11 Setting up the Android tools for use with DS-5™

This tutorial describes the steps required for Android development using DS-5, the Android Native Development Kit (NDK), Eclipse with C/C++ Development Tooling (CDT), and the Android Software Development Kit (SDK) Platform 2.2.

It does not describe how to install any of the Android tools. See the Android Developers website for more information.


Use of the Android development kits are subject to their own terms and conditions.

Before you can debug an Android package containing native C/C++ code you must:


  1. Download and install the Android SDK tools and required platforms. This enables you to build Java applications together with any native C/C++ code into an Android package with a .apk file extension. This example uses the Android SDK Platform 2.2.
  2. Download and install the Android NDK. This is a companion tool to the Android SDK that enables you to build performance-critical parts of your applications in native code such as C and C++ languages.


    On Windows, you must also download and install cygwin, including the make package so that you can run the scripts inside the Android NDK.

  3. Update the version of gdbserver in the Android NDK ...\toolchains\...\prebuilt directory with the required version of gdbserver provided by DS-5. You can locate this file by selecting Help > ARM Extras... from the main menu. Ensure that you rename it to gdbserver.
  4. Add the...\android-sdk\platform-tools folder to your PATH environment variable. If it is already configured then you can skip this step.
  5. Set up the Eclipse plug-in for Android:
    1. Launch Eclipse.
    2. Install the DS-5 Eclipse plug-ins. If you have a full DS-5 installation then you can skip this step.
    3. Install the Android Development Tools (ADT) Eclipse plug-ins.
    4. Select Window > Preferences > Android and click on Browse... to set the location of the Android SDK.
    5. Open the Android SDK and AVD Manager dialog box by selecting Window > Android SDK and AVD Manager.
    6. Expand the Available packages group and add SDK platforms as required. For example, Android SDK Platform Android 2.2.
Related tasks
Loading the hello-neon application on to an Android target
Connecting to an application that is already running on an Android target
Installing DS-5™ into a custom Eclipse environment
Related information
DS-5 Knowledge Articles
Android Developers
Non-ConfidentialPDF file icon PDF versionARM DUI0478N
Copyright © 2010-2013 ARM. All rights reserved.