本人把原来eclipse的项目删除了其他文件,只留下了src文件夹,File->open->项目之后,文件无法编译。这个时候采取的方法是,找到src的目录右键,Mark Directory as ->source root,这样就能通过编译并且运行了。
当然这样之后运行出现了这样一个错误:
Cannot start compilation: the output path is not specified for module "GraphicCreateGrid".
Specify the output path in the Project Structure dialog.