Android编程心得-解决Eclipse导入工程出现The project was not built since错误
我们在Android学习中,经常会导入工程源码进行学习,但是有的工程源码导入后会出现一个大大的红色感叹号,然后出现
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object的错误
解决办法如下:
1.首先删除本工作空间的工程
2.在Eclipse的菜单选择File->New->Project->Android->Android Project From Existing code,进入后选择本地工程路径导入.
3.这个时候如果还有红色感叹号,右键点击工程Properties,选择Java Build Path,在右边的Libraries中将错误的jar包删除,然后再工程下新建一个libs的文件夹,将正确的jar包导入进去,右键选中对应的包->Build Path->Add to Build Path
至此,问题解决
补充:移动开发 , Android ,