In Mac, I usually use these steps to run an android project:
1. Use create-android-project.bat making proj.android.
2. Use console running the build_native.sh in the project to build libgame.so.
3. Use eclipse to package the apk, and run it in my phone.
Use cocos2d-x 2.1.4 ,The step 2 and 3 can be both done in eclipse with CDT, so I tried, and sucessed in the sample projects(TestCpp and HelloCpp).
But when I want to compile a project created by the create-android-project.sh in this way, it cann’t be done.
I noticed the “.project” file in the sample projects is very complex, and there’s another “.cproject” file. I think they are the key.
Why sample is ok and create project is not ok?
My question is, how to generate them? Or how to Setup the my project to make it can be compiled by eclipse?