从外面import项目,可能会出现Project has no default.properties file! Edit the project properties to set one.错误,这是因为default.properties应该是程序自动生成的,但是拷入的项目中存在着default.properties文件,所以就会产生错误。
<wbr> 解决方法:</wbr>
1 删掉已导入的项目,然后将硬盘上的要拷入的项目中的default.properties文件剪切到别的地方
2 然后将改变后的项目重新拷入,再在导入的项目中新建一个File,名字为default.properties
3 然后用记事本把原来的default.properties打开
4 将里面的内容拷入项目中的default.properties中,然后选中导入的项目,refresh一下即可解决