Front, in Win7 with Cygwin on the NDK compile, did find a bit of trouble, to configure a lot of links.
There is another simpler way. is directly on the ADT configuration can be very convenient and practical.
First, to the official download the latest NDK decompression to the designated place.
Second, open ADT,
1. Project
2. Properties
3, Builders--new ...
4. Program
5. Write the project name
6, main below location select Browser FIle System. Select the ndk-build.cmd below the path of the NDK
7. Working directory Select the project to compile
8. Then find refresh (tick refresh resources upon completion)
9. Then find the build Options
10. Check after a "clean", During manual builds, During Auto builds, specify working set of relevant rsources
11. Finally click Specify Resources ... Select the JNI directory in the project (i.e. C source directory)
12, the completion of the determination.
Three, run the project bar. It's done. is not very simple. Save a lot of trouble.
Follow this step to compile the NDK's own Hellojni example.
Android NDK Compilation Simple example of Helloword