READ ME FIRST
These guides written in this forum don’t make any sense and I don’t even know if they work.
If you’d like to read an easy to follow guide that works.
Install MinGW from the guide below. This will take care of compiling the C/C++ code (with bash) for you with Gnu. Remember that Windows requires you to log out and back in after you make changes to the Path in environment variables.
Download Eclipse if you didn’t already.
In Eclipse update the SDK, Window->SDK Manager
NOTE You should use a real Android device plugged in via USB because Cocos2dx requires OpenGL which doesn’t run easily via the emulator. Make sure you check “Use Host GPU” if you do use an emulator. For me, the biggest hurdle in using Windows to do Android development with Cocos2d is to get Windows to recognize my Android device on USB properly.
Download Cocos2d-x-2.2.2, example path, "c:/development/projects/cocos2d-x-2.2.2"
Download Android NDK, example path, “c:/development/lib/android/ndk”
Eclipse preferences (for all Cocos2d related projects)
-set “COCOS2DX” to the path we chose above “c:/development/projects/cocos2d-x-2.2.2"
Eclipse->Preferences->C/C++ > Build > Environment > ADD
-set “NDK_ROOT” to the path we chose above"c:/development/lib/android/ndk”
Create a workspace for your Cocos2d Project.
Choose new “Android Project from Existing Code” (I had to select “other” to see this option)
You’ll need to include this project to get cocos2d-x.
Now you may create your Cocos2dx project, or add a sample project:
Choose new “Android Project from Existing Code”
Note: at this point you should have 2 projects in your Workspace. Click on the second one, ex: MoonWarriors and then press Run (after you plug in your device or setup an emulator).