In the new version of Windows, ndk does not need cygwin as the basic environment.
For detailed steps, refer to the documentation on the official website:
Http://tools.android.com/recent/usingthendkplugin
I tried it for a while, which is very convenient, and I don't need to go to the command line to knock on the command. I just got it done in eclipse.
The basic steps are as follows:
Download and install JDK.
Download and install the android SDK and ndk.
Download indigo eclipse and install the CDT plug-in first. We recommend that you directly download the eclipse integrated with CDT.
Install the android eclipse ADT plug-in. During installation, select install all plug-in components.
Eclipse-> window-> preferences-> Android-> set the android SDK path
Eclipse-> window-> preferences-> Android-> ndk-> set the android ndk path
Create an android project, right-click the project, and select android
Tools-> Add native support.
To debug C/C ++ code with a breakpoint:
Right-click the project and choose Properties
-> C/C ++ build
Set the build command value to ndk-build
Ndk_debug = 1