还有另一个“由于构建路径不完整,所以未构建该项目” [英] Yet Another 'The project was not built since its build path is incomplete'

查看:249
本文介绍了还有另一个“由于构建路径不完整,所以未构建该项目”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android项目,已经在Eclipse Indigo中愉快地构建了数周。 我没有更改任何设置,库或工作区组件,也没有添加或删除任何文件。几个小时前,我正在做一个运行方式来在电话上运行我的应用程序,而Eclipse却很难解决。我什至无法在任务管理器中将其杀死,所以我重新启动了PC。



现在,当我尝试构建应用程序时,我会得到
未构建项目,因为其构建路径不完整。找不到java.lang.Object的类文件。修复构建路径,然后尝试构建该项目。



我删除了gen并进行了清理并以相同的结果进行构建。在构建路径的项目属性的库选项卡中,它显示




  • Android Dependencies

  • Android私有库

  • 无法获取该项目的系统库。



任何想法上?这种Eclipse构建路径不完整错误非常普遍,但是当我搜索Stack Overflow和Google时,大多数情况似乎与导入新项目,移动工作空间,更改库或其他我没有做的事情有关。 p>

预先感谢!

解决方案

我已解决问题。



我做了一个 File> Switch Workspace ,然后切换到另一个有不同项目的工作区。然后,我又回到原来的工作区,一切都很好。



因此,我们可以将其添加到非常一长串的民间疗法中, Nostrum,旧妇的故事,迷信和其他一些软件知识,伴随着困扰Eclipse的各种怪异错误。我肯定希望Android Studio会比这更好!


I have an Android project that I've been happily building for weeks in Eclipse Indigo. I have not changed any settings, libraries, or workspace components, or added or removed any files. A few hours ago I was doing a "Run as" to run my app on a phone and Eclipse did a hard hang. I couldn't even kill it in Task Manager so I rebooted my PC.

Now when I try to build my app I get "The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project"

I deleted gen and did a clean and build with the same result. In the project Properties for the build path, in the Libraries tab it shows

  • Android Dependencies
  • Android Private Libraries
  • Unable to get system library for the project.

Any idea what's going on? This Eclipse "build path is incomplete" error is very common but when I search Stack Overflow and Google, most of the cases seem to be related to importing new projects, moving workspaces, changing libraries or other things I didn't do.

Thanks in advance!

解决方案

I fixed my problem.

I did a File>Switch Workspace and switched to another workspace that had a different project in it. Then I switched back to my original workspace and everything was fine.

So we can add this to the very long list of folk-remedies, nostrums, old-wives-tales, superstitions and other bits of software lore that accompany the various weird bugs that afflict Eclipse. I sure hope Android Studio turns out to be better than this!

这篇关于还有另一个“由于构建路径不完整,所以未构建该项目”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆