序列化CDT项目设置遇到了 [英] Serializing CDT Project settings has encountered a

查看:137
本文介绍了序列化CDT项目设置遇到了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我建立我的项目,我得到这个错误。

When I build my project I get this error.

Serializing CDT Project settings has encountered a problem (Null Pointer Exception)

我使用最新的Eclipse和试图建立的cocos2d-X3.2为Android。

I am using latest eclipse and trying to build cocos2d-x3.2 for Android.

推荐答案

花几个小时试图今早找出同样的错误信息(通过Eclipse一堆不起眼的NullPointerException异常沿)之后,我比较了Eclipse项目文件previous版本,并发现了Eclipse的一个添加额外的节点,我.cproject文件,使之成为三个总。我删除了这一个,这是一个由Eclipse的加入,也是最后一次在文件中。

After spending a few hours trying to figure out the same error message this morning (along with a bunch of nondescript nullpointerexceptions from Eclipse) I compared the Eclipse project files with previous version and found that Eclipse had added an extra node to my .cproject file, making it three in total. I removed this one, which was the one added by Eclipse and also the last one in the file.

    <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一切都工作了。

After removing that and restarting Eclipse everything was working again.

我希望这可以帮助别人。我不知道这是否是唯一的,或者什么导致问题为别人着想,但显然朝CDT问题的错误点,因此比较.cproject文件更改previous版本(或默认的)是值得一试

I hope this helps someone. I'm not sure whether this was unique or something that causes issues for others, but clearly the error points towards a CDT problem and therefore comparing the .cproject file to previous versions (or default ones) for changes is worth a shot.

这篇关于序列化CDT项目设置遇到了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆