当我构建项目时,我收到此错误。
Serializing CDT Project settings has encountered a problem (Null Pointer Exception)
我正在使用最新的 eclipse 并尝试为 Android 构建 cocos2d-x3.2 。
今天早上花了几个小时试图找出同样的错误消息(以及来自 Eclipse 的一堆不伦不类的空指针异常)后,我将 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 文件与以前的版本(或默认版本)进行比较以进行更改值得一试。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)