serializing cdt project settings java.lang.NullPointerException

解决办法:

1、在.cproject(是隐藏文件)中干掉后面的<cconfiguration....Debug/>并替换为:

<cconfigurationid="0.1230402123">

<storageModulebuildSystemid="org.eclipse.cdt.managedbuilder.core.configurationDataProvider"id="0.1230402123"moduleid="org.eclipse.cdt.core.settings"name="Release">

<externalSettings/>

<extensions>

<extensionid="org.eclipse.cdt.core.VCErrorParser"point="org.eclipse.cdt.core.ErrorParser"/>

<extensionid="org.eclipse.cdt.core.GmakeErrorParser"point="org.eclipse.cdt.core.ErrorParser"/>

<extensionid="org.eclipse.cdt.core.CWDLocator"point="org.eclipse.cdt.core.ErrorParser"/>

<extensionid="org.eclipse.cdt.core.GCCErrorParser"point="org.eclipse.cdt.core.ErrorParser"/>

<extensionid="org.eclipse.cdt.core.GASErrorParser"point="org.eclipse.cdt.core.ErrorParser"/>

<extensionid="org.eclipse.cdt.core.GLDErrorParser"point="org.eclipse.cdt.core.ErrorParser"/>

</extensions>

</storageModule>

<storageModulemoduleid="cdtBuildSystem"version="4.0.0">

<configurationartifactname="${ProjName}"buildProperties=""description=""id="0.1230402123"name="Release"parent="org.eclipse.cdt.build.core.prefbase.cfg">

<folderInfoid="0.1230402123."name="/"resourcePath="">

<toolChainid="org.eclipse.cdt.build.core.prefbase.toolchain.1911072326"name="NoToolChain"resourceTypeBasedDiscovery="false"superclass="org.eclipse.cdt.build.core.prefbase.toolchain">

<targetPlatformid="org.eclipse.cdt.build.core.prefbase.toolchain.1911072326.2087917918"name=""/>

<builderarguments="${ProjDirPath}/build_native.py-brelease"buildPath="${ProjDirPath}"command="python"id="org.eclipse.cdt.build.core.settings.default.builder.1038735572"keepEnvironmentInBuildfile="false"managedBuildOn="false"name="GnuMakeBuilder"superclass="org.eclipse.cdt.build.core.settings.default.builder">

<outputEntries>

<entryflags="VALUE_WORKSPACE_PATH|RESOLVED"kind="outputPath"name=""/>

</outputEntries>

</builder>

<toolid="org.eclipse.cdt.build.core.settings.holder.libs.547532631"name="holderforlibrarysettings"superclass="org.eclipse.cdt.build.core.settings.holder.libs"/>

<toolid="org.eclipse.cdt.build.core.settings.holder.1481118451"name="Assembly"superclass="org.eclipse.cdt.build.core.settings.holder">

<optionid="org.eclipse.cdt.build.core.settings.holder.incpaths.990682174"name="IncludePaths"superclass="org.eclipse.cdt.build.core.settings.holder.incpaths"valueType="includePath">

<listOptionValuebuiltIn="false"value="${NDK_ROOT}/sources/android/native_app_glue"/>

</option>

<optionid="org.eclipse.cdt.build.core.settings.holder.symbols.387417389"name="Symbols"superclass="org.eclipse.cdt.build.core.settings.holder.symbols"valueType="definedSymbols">

<listOptionValuebuiltIn="false"value="CC_TARGET_PLATFORM=CC_PLATFORM_ANDROID"/>

<listOptionValuebuiltIn="false"value="CC_DLL"/>

</option>

<inputTypeid="org.eclipse.cdt.build.core.settings.holder.inType.992559344"languageid="org.eclipse.cdt.core.assembly"languagename="Assembly"sourceContentType="org.eclipse.cdt.core.asmSource"superclass="org.eclipse.cdt.build.core.settings.holder.inType"/>

</tool>

<toolid="org.eclipse.cdt.build.core.settings.holder.429561268"name="GNUC++"superclass="org.eclipse.cdt.build.core.settings.holder">

<optionid="org.eclipse.cdt.build.core.settings.holder.incpaths.1008860290"name="IncludePaths"superclass="org.eclipse.cdt.build.core.settings.holder.incpaths"valueType="includePath">

<listOptionValuebuiltIn="false"value="${NDK_ROOT}/sources/android/native_app_glue"/>

<listOptionValuebuiltIn="false"value="${NDK_ROOT}/platforms/android-18/arch-arm/usr/include"/>

<listOptionValuebuiltIn="false"value="${NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/4.8/include"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/cocos/2d"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/cocos"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/cocos/physics"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/cocos/base"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/cocos/math/kazmath"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/cocos/ui"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/cocos/network"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/cocos/audio/include"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/cocos/editor-support"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/extensions"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/external"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/external/chipmunk/include/chipmunk"/>

</option>

<optionid="org.eclipse.cdt.build.core.settings.holder.symbols.1728671637"name="Symbols"superclass="org.eclipse.cdt.build.core.settings.holder.symbols"valueType="definedSymbols">

<listOptionValuebuiltIn="false"value="CC_TARGET_PLATFORM=CC_PLATFORM_ANDROID"/>

<listOptionValuebuiltIn="false"value="CC_DLL"/>

</option>

<inputTypeid="org.eclipse.cdt.build.core.settings.holder.inType.788524757"languageid="org.eclipse.cdt.core.g++"languagename="GNUC++"sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader"superclass="org.eclipse.cdt.build.core.settings.holder.inType"/>

</tool>

<toolid="org.eclipse.cdt.build.core.settings.holder.795443271"name="GNUC"superclass="org.eclipse.cdt.build.core.settings.holder">

<optionid="org.eclipse.cdt.build.core.settings.holder.incpaths.315092538"name="IncludePaths"superclass="org.eclipse.cdt.build.core.settings.holder.incpaths"valueType="includePath">

<listOptionValuebuiltIn="false"value="${NDK_ROOT}/sources/android/native_app_glue"/>

</option>

<optionid="org.eclipse.cdt.build.core.settings.holder.symbols.706119994"name="Symbols"superclass="org.eclipse.cdt.build.core.settings.holder.symbols"valueType="definedSymbols">

<listOptionValuebuiltIn="false"value="CC_TARGET_PLATFORM=CC_PLATFORM_ANDROID"/>

<listOptionValuebuiltIn="false"value="CC_DLL"/>

</option>

<inputTypeid="org.eclipse.cdt.build.core.settings.holder.inType.1846971482"languageid="org.eclipse.cdt.core.gcc"languagename="GNUC"sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader"superclass="org.eclipse.cdt.build.core.settings.holder.inType"/>

</tool>

</toolChain>

</folderInfo>

<sourceEntries>

<entryexcluding="Classes|cocos2d"flags="VALUE_WORKSPACE_PATH|RESOLVED"kind="sourcePath"name=""/>

<entryflags="VALUE_WORKSPACE_PATH|RESOLVED"kind="sourcePath"name="Classes"/>

<entryflags="VALUE_WORKSPACE_PATH|RESOLVED"kind="sourcePath"name="cocos2d"/>

</sourceEntries>

</configuration>

</storageModule>

<storageModulemoduleid="org.eclipse.cdt.core.externalSettings"/>

</cconfiguration>

<cconfigurationid="0.1377291156">

<storageModulebuildSystemid="org.eclipse.cdt.managedbuilder.core.configurationDataProvider"id="0.1230402123.1377291156"moduleid="org.eclipse.cdt.core.settings"name="Debug">

<externalSettings/>

<extensions>

<extensionid="org.eclipse.cdt.core.VCErrorParser"point="org.eclipse.cdt.core.ErrorParser"/>

<extensionid="org.eclipse.cdt.core.GmakeErrorParser"point="org.eclipse.cdt.core.ErrorParser"/>

<extensionid="org.eclipse.cdt.core.CWDLocator"point="org.eclipse.cdt.core.ErrorParser"/>

<extensionid="org.eclipse.cdt.core.GCCErrorParser"point="org.eclipse.cdt.core.ErrorParser"/>

<extensionid="org.eclipse.cdt.core.GASErrorParser"point="org.eclipse.cdt.core.ErrorParser"/>

<extensionid="org.eclipse.cdt.core.GLDErrorParser"point="org.eclipse.cdt.core.ErrorParser"/>

</extensions>

</storageModule>

<storageModulemoduleid="cdtBuildSystem"version="4.0.0">

<configurationartifactname="${ProjName}"buildProperties=""description=""id="0.1230402123.1377291156"name="Debug"parent="org.eclipse.cdt.build.core.prefbase.cfg">

<folderInfoid="0.1230402123.1377291156."name="/"resourcePath="">

<toolChainid="org.eclipse.cdt.build.core.prefbase.toolchain.201833538"name="NoToolChain"resourceTypeBasedDiscovery="false"superclass="org.eclipse.cdt.build.core.prefbase.toolchain">

<targetPlatformid="org.eclipse.cdt.build.core.prefbase.toolchain.201833538.235980614"name=""/>

<builderarguments="${ProjDirPath}/build_native.py-bdebug"buildPath="${ProjDirPath}"command="python"id="org.eclipse.cdt.build.core.settings.default.builder.1949248716"keepEnvironmentInBuildfile="false"managedBuildOn="false"name="GnuMakeBuilder"superclass="org.eclipse.cdt.build.core.settings.default.builder">

<outputEntries>

<entryflags="VALUE_WORKSPACE_PATH|RESOLVED"kind="outputPath"name=""/>

</outputEntries>

</builder>

<toolid="org.eclipse.cdt.build.core.settings.holder.libs.813839891"name="holderforlibrarysettings"superclass="org.eclipse.cdt.build.core.settings.holder.libs"/>

<toolid="org.eclipse.cdt.build.core.settings.holder.766422923"name="Assembly"superclass="org.eclipse.cdt.build.core.settings.holder">

<optionid="org.eclipse.cdt.build.core.settings.holder.incpaths.658464030"name="IncludePaths"superclass="org.eclipse.cdt.build.core.settings.holder.incpaths"valueType="includePath">

<listOptionValuebuiltIn="false"value="${NDK_ROOT}/sources/android/native_app_glue"/>

</option>

<optionid="org.eclipse.cdt.build.core.settings.holder.symbols.402466199"name="Symbols"superclass="org.eclipse.cdt.build.core.settings.holder.symbols"valueType="definedSymbols">

<listOptionValuebuiltIn="false"value="CC_TARGET_PLATFORM=CC_PLATFORM_ANDROID"/>

<listOptionValuebuiltIn="false"value="CC_DLL"/>

</option>

<inputTypeid="org.eclipse.cdt.build.core.settings.holder.inType.930232989"languageid="org.eclipse.cdt.core.assembly"languagename="Assembly"sourceContentType="org.eclipse.cdt.core.asmSource"superclass="org.eclipse.cdt.build.core.settings.holder.inType"/>

</tool>

<toolid="org.eclipse.cdt.build.core.settings.holder.55647957"name="GNUC++"superclass="org.eclipse.cdt.build.core.settings.holder">

<optionid="org.eclipse.cdt.build.core.settings.holder.incpaths.814113654"name="IncludePaths"superclass="org.eclipse.cdt.build.core.settings.holder.incpaths"valueType="includePath">

<listOptionValuebuiltIn="false"value="${NDK_ROOT}/sources/android/native_app_glue"/>

<listOptionValuebuiltIn="false"value="${NDK_ROOT}/platforms/android-18/arch-arm/usr/include"/>

<listOptionValuebuiltIn="false"value="${NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/4.8/include"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/cocos/2d"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/cocos"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/cocos/physics"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/cocos/base"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/cocos/math/kazmath"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/cocos/ui"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/cocos/network"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/cocos/audio/include"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/cocos/editor-support"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/extensions"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/external"/>

<listOptionValuebuiltIn="false"value="${ProjDirPath}/../cocos2d/external/chipmunk/include/chipmunk"/>

</option>

<optionid="org.eclipse.cdt.build.core.settings.holder.symbols.923561092"name="Symbols"superclass="org.eclipse.cdt.build.core.settings.holder.symbols"valueType="definedSymbols">

<listOptionValuebuiltIn="false"value="CC_TARGET_PLATFORM=CC_PLATFORM_ANDROID"/>

<listOptionValuebuiltIn="false"value="CC_DLL"/>

</option>

<inputTypeid="org.eclipse.cdt.build.core.settings.holder.inType.383151501"languageid="org.eclipse.cdt.core.g++"languagename="GNUC++"sourceContentType="org.eclipse.cdt.core.cxxSource,org.eclipse.cdt.core.cxxHeader"superclass="org.eclipse.cdt.build.core.settings.holder.inType"/>

</tool>

<toolid="org.eclipse.cdt.build.core.settings.holder.2139448747"name="GNUC"superclass="org.eclipse.cdt.build.core.settings.holder">

<optionid="org.eclipse.cdt.build.core.settings.holder.incpaths.715095106"name="IncludePaths"superclass="org.eclipse.cdt.build.core.settings.holder.incpaths"valueType="includePath">

<listOptionValuebuiltIn="false"value="${NDK_ROOT}/sources/android/native_app_glue"/>

</option>

<optionid="org.eclipse.cdt.build.core.settings.holder.symbols.157274928"name="Symbols"superclass="org.eclipse.cdt.build.core.settings.holder.symbols"valueType="definedSymbols">

<listOptionValuebuiltIn="false"value="CC_TARGET_PLATFORM=CC_PLATFORM_ANDROID"/>

<listOptionValuebuiltIn="false"value="CC_DLL"/>

</option>

<inputTypeid="org.eclipse.cdt.build.core.settings.holder.inType.108662290"languageid="org.eclipse.cdt.core.gcc"languagename="GNUC"sourceContentType="org.eclipse.cdt.core.cSource,org.eclipse.cdt.core.cHeader"superclass="org.eclipse.cdt.build.core.settings.holder.inType"/>

</tool>

</toolChain>

</folderInfo>

<sourceEntries>

<entryexcluding="Classes|cocos2d"flags="VALUE_WORKSPACE_PATH|RESOLVED"kind="sourcePath"name=""/>

<entryflags="VALUE_WORKSPACE_PATH|RESOLVED"kind="sourcePath"name="Classes"/>

<entryflags="VALUE_WORKSPACE_PATH|RESOLVED"kind="sourcePath"name="cocos2d"/>

</sourceEntries>

</configuration>

</storageModule>

<storageModulemoduleid="org.eclipse.cdt.core.externalSettings"/>

</cconfiguration>

万草奔腾~太多时间浪费在环境工具上,坑坑坑

相关推荐