I try to import example projects using Android NDK 7 into Eclipse. The problem is that no matter how I do it. The project always ends up being completely empty.
For example I tried to import the hello-jni example. I have both tried to import it via:
- New -> Project -> Android Project -> Create project from existing source
- Import -> Existing Projects into Workspace
Both times the computer seems to find the AndroidManifest.xml as it correctly fills out the fields for package name, etc. But as soon as I press Finish I only have an empty project. The same procedure works for Android Projects not using the NDK as e.g. the Snake example from Android SDK. The behaviour is also consistent between MacOSX Lion and Windows.
What do I need to import the existing Android NDK examples into Eclipse.
NOTE: I managed to import the projects, when I copy the ndk into the root directory. However in the NDK documentation it says I can put in into any directory I want and I would rather not have it in the root directory. Any ideas why it only works there?