关于eclipse的"serializing cdt project settings"解决方案

转载地址:http://blog.csdn.net/djvc/article/details/41117677


最近在使用eclipse作为cocos2dx的交叉编译工具。但是某天突然相关工程打不开,打开eclipse直接提示

“serializing cdt project settings” has encountered a problem 

然后就是项目工程打不开了,熟悉cocos2dx开发流程的人,都知道建立一个android工程也不是太简单,很方便,关键是这个问题是第二次出现,

非常恶心,所以想了一会,看了一下项目底下的文件,

1、CDT 是支持c++相关的

2、文件修改时间,

最后锁定了.cproject

通过第三方对比工具,比对另外一个正常打开的工程项目,发现了一些区别。


一个是开头的

[html]  view plain  copy
 print ?
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>  
  2. <?fileVersion 4.0.0?>  
  3.   
  4.   
  5. <cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">  

注意排版好格式


接着下面一段

[html]  view plain  copy
 print ?
  1. <cconfiguration id="0.1230402123.1377291156">  
  2.             <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="0.1230402123.1377291156" moduleId="org.eclipse.cdt.core.settings" name="Debug">  
  3.                 <externalSettings/>  
  4.                 <extensions>  
  5.                     <extension id="org.eclipse.cdt.core.VCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>  
  6.                     <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>  
  7.                     <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/>  
  8.                     <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>  
  9.                     <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>  
  10.                     <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>  
  11.                 </extensions>  
  12.             </storageModule>  
  13.             <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>  
  14.         </cconfiguration>  

把这一段删除,保存,再打开eclipse,ok了。


亲测实用。




  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值