The project was not built due to "Could not delete ”

项目原本是正常的,但是在我进行了一番操作之后,将项目文件放在了开发机上,添加了一个测试类之后,这个类在run的时候突然提示找不到类,其余测试类也是运行失败,然后在检查项目的时候发现项目的prolems中出现了一个很奇怪的错误:

The project was not built due to "Could not delete '/fx_Plat2_PayBusi/bin/com'.". Fix the problem, then try refreshing this project and building it since it may be inconsistent。

   翻译:这个项目不能被构建是因为“不能删除/fxplat2paybusi/bin/com”。修复问题,然后尝试刷新这个项目并构建它,因为它可能不一致

这个错误导致我项目中的其他类也启动失败。最后发现是因为我在xshell中将这个项目文件夹打开了,导致该项目正在使用中,所以究其原因是因为该项目正在被另外一个进程使用,所以无法重新构建。可以尝试在任务管理器中关闭,或者直接关闭那个软件即可。

猜你喜欢

转载自blog.csdn.net/ljy950914/article/details/79787670