i am starting by macOSX xcode4.5 .
i tried to tutorials.
Using cocos2dx, it completes building of macOSX,
The problem occurred in android sources.
You can copy the folder (cocos2d-2.0-x-2.0.3/cocos2dx/platform/android/java) beside the proj.android folder of your game folder, then import it with the game in eclipse.After importing these 2 projects, open Properties of the game and then add libcocos2dx as library and click apply and build.
i have tries these and works for me