Project has no default.properties file! Edit the project properties to set one.错误解决方案

来源:互联网 发布:淘宝天天秒杀 编辑:程序博客网 时间:2024/05/02 00:30

 从外面import项目,可能会出现Project has no default.properties file! Edit the project properties to set one.错误,这是因为default.properties应该是程序自动生成的,但是拷入的项目中存在着default.properties文件,所以就会产生错误。

 

  解决方法:

1 删掉已导入的项目,然后将硬盘上的要拷入的项目中的default.properties文件剪切到别的地方

2 然后将改变后的项目重新拷入,再在导入的项目中新建一个File,名字为default.properties

3 然后用记事本把原来的default.properties打开

4 将里面的内容拷入项目中的default.properties中,然后选中导入的项目,refresh一下即可解决

 

转载:http://blog.sina.com.cn/s/blog_70677d110100u3n0.html

原创粉丝点击