cocos2d-x 3.2 project cause eclipse cdt's error

I create a new project with cocos2d-x 3.2 according to this tutorial: http://cocos2d-x.org/wiki/How_to_Start_A_New_Cocos2D-X_Game
then I import the project into eclipse according to this tutorial: http://www.cocos2d-x.org/wiki/How_to_Build_an_Android_Project_with_Eclipse
The project works but after I close eclipse and open it again, eclipse popup an error dialog. The error message shows a NullpointerException happened because of indexer and android updater.

I tried several times and found as long as eclipse is closed and opened again, newly created project will cause the same errors.

here is my dev environment infos:
macosx 10.9.4
eclipse 4.2.1
cocos2d-x 3.2
ndk r9d

anyone found the same problem?

Hey, the wiki doesn’t help to understand sometime.

Why not have video tutorials, if you want to learn
search for Sonar Systems on YouTube.

For the time being, i am sending some links to solve your issue.

the links are under.

link 1 and link 2

if you find anything doubtful ask then on their support website.
which is -

support@sonarsystems.co.uk

If it helped, hit a like. :smile:

Happy Coding

I recently wrote a 'how to set up cocos2d-x 3.2 on Mac

http://www.codeproject.com/Articles/801093/Writing-Games-with-Cplusplus-for-Android-on-a-Mac

I didn’t have your problem - but it might help comparing what I did with what you have done!

I found once the c++ include paths is modified, the problem will happen. So there maybe something wrong with the .cproject file within the proj.android folder.

Yes. Open the .cproject file and you will see there are 2 <cconfiguration> sections. When editing the c++ include paths in eclipse, only one of them is modified. This inconsistence cause the cdt crash.

Solution:
In fact there should only be one <cconfiguration>, so delete the second one, it start from line 85. After that you can edit c++ include paths in eclipse and no crash will happen.

ps:
Why should I edit the c++ include path of a newly created project? Because one of them is wrong:
${ProjDirPath}/…/cocos2d/cocos/math/kazmath, this path should be changed to ${ProjDirPath}/…/cocos2d/cocos/math

1 Like