当我构建我的项目时,我遇到了这个错误。
Serializing CDT Project settings has encountered a problem (Null Pointer Exception)
我正在使用最新的 eclipse 并尝试为 Android 构建 cocos2d-x3.2。
最佳答案
今天早上花了几个小时试图找出相同的错误消息(以及来自 Eclipse 的一堆不起眼的 nullpointerexceptions)后,我将 Eclipse 项目文件与以前的版本进行了比较,发现 Eclipse 向我的 . cproject 文件,总共三个。我删除了这个,这是Eclipse添加的,也是文件中的最后一个。
<cconfiguration id="0.1230402123.1377291156">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.1230402123.1377291156" moduleId="org.eclipse.cdt.core.settings" name="Debug">
<externalSettings/>
<extensions>
<extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
<extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
</extensions>
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
删除它并重新启动 Eclipse 后,一切又恢复正常了。
我希望这对某人有所帮助。我不确定这是独一无二的还是会导致其他人出现问题,但显然错误指向 CDT 问题,因此值得一试将 .cproject 文件与以前的版本(或默认版本)进行比较以进行更改。
关于android - 序列化 CDT 项目设置遇到了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26521467/