最近在用cocos2dx 3.x版本做android版本的时候,出现点击工程-属性-C/C++ builder的时候会提示
The currently displayed paye contains invalid values
或者
An error has occurred. See error log for more details.
java.lang.NullPointerException
解决办法是打开proj.android下面的 ".cproject"文件
删除包含org.eclipse.cdt.managedbuilder.core.configurationDataProvider的cconfiguration块
<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>
保存后即可,原因未知,有知道的可以回复一下~
特此记录,困扰一晚上的问题。
时间: 2024-10-08 22:03:35