http://tools.android.com/recent/usingthendkplugin
Using the NDK plugin
posted Jul 2, 2012, 7:16 PM by Siva Velusamy
ADT 20 includes an NDK plugin that provides
support for building and debugging NDK projects in Eclipse. This document describes how to install and use the NDK plugin. Installation
The NDK plugin currently works with CDT 7.0.2 or CDT 8.0.2.
Using the NDK Plugin
1. First set the path to SDK and NDK: Eclipse -> Window -> Preferences -> Android -> Eclipse -> Window -> Preferences -> Android -> 2. Right click on an Android project and select Android Tools -> Add native support. At this point, you will be able to build your applications using Project -> Build All. Debugging native applications 1. Update your build config to include “NDK_DEBUG = 1”. Right click project -> properties -> C/C++ Build: 2. Set a breakpoint in your C code.
3. Right click on your project, select Debug As -> Android Native Application Note: There is a delay of a few seconds between when the activity is launched and when native debugging starts. If your code is already executed by Known Issues 1. Eclipse does not automatically find the include paths to all the NDK headers on Windows. This issue will be fixed in the next update (20.0.1) when |