Before today i use Eclipse 3.8 with Sequoyah plugin for Android NDK project.
But today i decide to freshen Eclipse to Juno release with SDK and NDK.
I w
If you are using Eclipse Kepler the path to add the NDK include
Properties->C/C++ General->Paths and Symbols.
on my version of NDK the include path needed was:
C:\Program Files (x86)\Android\android-sdk\NDK\android-ndk-r10\platforms\android-L\arch-arm\usr\include.
It will ask you if you want to rebuild. Afterwards the errors go away.
I often solving similar issues that is probably occur when you move or rename the working folder of the project.
.settings
.classpath
.cproject
.project
project.properties
Also this solved issue with Eclipse 4.3 previously ignored build system and user defined compiler flags. Now macros folding dependent on this flags works fine.
If more general: NDK plugin can properly define for you right includes and anything other required to work fine, but you need to clean your project from broken crap, and easiest way to do so is reimport project.
I've tried android-ndk-r8b with C:\Android\android-ndk-r8b
in my PATH
variable.
Project compiled without error.
However eclipse "says" that Unresolved inclusion: <jni.h>
solved:
NDK Project->New->Folder->Advanced->Link to alternate location(Linked Folder)
Browse the path(for example):C:\Android\android-ndk-r8b\platforms\android-8\arch-arm\usr\include
You can do this by choosing Properties for the project
Properties -> C/C++ General -> Preprocessor Include..-> Entries -> Setting Entries -> CDT User Setting Entries
Add -> Include Directory -> File System Path, and enter the path of the includes
ndk/platforms/android-[version]/[arch]/usr/include