Eclipse导入项目出现“找不到项目”的解决办法以及导入后的一些操作
【关于找不到项目】eclipse项目会有两个文件
我们新建一个test项目,打开其所在目录:
![test](https://i-blog.csdnimg.cn/blog_migrate/3fbeb054316fcc0b34955db4c5b4c62c.png)
将这两个文件copy到欲导入的项目目录下,打开.project:修改对应的项目名称即可:
![修改](https://i-blog.csdnimg.cn/blog_migrate/247e872b549f1cb2c62d179c6fec10d5.png)
【关于导入后报错“The import 某某 cannot be resolved”的基操】
出现报错“The import 某某 cannot be resolved”
![errors](https://i-blog.csdnimg.cn/blog_migrate/2f5c50079db4296a7d3f1953352ba473.png)
往往是没导入相应的jar,框选libs下的内容:
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/3f6d6b944aae6376998f86ddba7885c8.png)
右击选择BuildPath——Add to Build Path
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/7618424e40e818b3d4c1fde3ba711ef7.png)