只有在一些工作区构建路径不完整(安卓) [英] Build path incomplete only in some workspaces (Android)

查看:225
本文介绍了只有在一些工作区构建路径不完整(安卓)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有多个Eclipse(3.52伽利略))的工作区,这样我就可以保持相关项目在同一个工作区。我在它们之间进行切换使用文件>切换工作空间。

I have multiple Eclipse (3.52 "Galileo") ) workspaces so that I can keep related projects together in the same workspace. I switch between them with File > Switch Workspace.

最近我抄好了,工作项目,以不同​​的工作区,做了一个文件>导入在其新的工作空间,但这样做清洁后而建,拿到了 项目未建,因为它的构建路径是不完整的。找不到类文件的java.lang.Object,修复构建路径,然后尝试建立这个项目的错误。

I recently copied a good, working project to a different workspace, did a "File > Import" to import it in its new workspace, but after doing a Clean and Build, got the "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 " error.

我的所有其他项目建设的罚款。我认为,构建路径中提到的搜索路径Java或SDK文件,那么,为什么它不仅不能在一个项目上(...一个项目,在不同的工作区构建精细,在那个)?

All my other projects build fine. I thought the "build path" referred to the search path Java or SDK files, so why would it only fail on one project ( ...a project that builds fine in a different workspace, at that)?

我试图重新启动日食,来回切换工作区之间,做一套干净而建,但没有运气。有任何想法吗?提前致谢。

I've tried restarting eclipse, switching back and forth between workspaces, doing another clean and build, but no luck. Any ideas? Thanks in advance.

推荐答案

这可能是一个有点晚来帮助你,但如果别人都看,这里是我如何固定它:

This may be a little late to help you, but in case others are looking, here's how I fixed it:

右键点击您的项目,并选择属性。然后选择Java构建路径,和库选项卡。寻找一个JVM。如果一个人不存在(断链从复制的项目),请单击添加库,并添加默认的JVM。如果虚拟机是存在的,选择它并点击编辑,并重新选择默认的JVM。这应该重新建立该链接并解决问题。希望这有助于。

Right click on your project and select ‘Properties’. Then select ‘Java Build Path’, and the Library tab. Look for a JVM. If one is not there (broken link from your copied project), click ‘Add Library’ and add the default JVM. If a VM is there, select it and hit ‘Edit’ and reselect the default JVM. This should reestablish that link and fix the problem. Hope this helps.

这篇关于只有在一些工作区构建路径不完整(安卓)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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