Configuring your development environment for native development

After installing the Android NDK and a few other needed components, Eclipse can be configured to let you develop Android applications that include native (C/C++) code.

Native support requires that the following be installed:
  • The Eclipse CDT plugin (version 7 or later)
  • The Sequoyah Android feature
  • Android NDK
  • Cygwin (only on systems running Microsoft Windows)
  • The Java JDK (the JRE is not sufficient; you need the full JDK)

Your development computer's system path (not the Eclipse path) should include the directory containing the Android NDK, and, on Microsoft Windows, the directory containing the Cygwin binaries.

For instructions on locating and installing the above components, and on setting your computer's system path, see the MOTODEV Studio for Android Installation Guide.

  1. Specify the location of the NDK from within your development environment: navigate to the Android > Android NDK preferences page and specify the path to the directory containing the NDK using the NDK Location field.
Now that you have configured your development environment to enable native development, enable it in those Android projects that have (or will have) native code.