When I build my project I get this error.
Serializing CDT Project settings has encountered a problem (Null Pointer Exception)
I am using latest eclipse and trying to build cocos2d-x3.2 for Android.
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>
After removing that and restarting Eclipse everything was working again.
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.
I solve this problem by deleting
.cproject and .project
file and build project again and replace past other project .cproject now it work fine
Someone said him replaced cdt plugin v8.1.2 to v8.1.0 can resolve this problem.
来源:https://stackoverflow.com/questions/26521467/serializing-cdt-project-settings-has-encountered-a