1

我在 MacOS 上开发一个 Android 项目。最近我不得不在另一个位置创建我的项目的副本。说它是Users/user/SVN/Applications/BarPoject/AndroidBarProject,现在它是Users/user/Projects/AndroidBarProject

现在我正在尝试让 Eclipse 在新位置使用该项目。启动 Eclipse 时,我浏览到新工作区,然后单击“确定”,然后出现一个弹出警报,内容如下:

An error has occurred. See the log file /Users/user/Projects/AndroidBarProject/.metadata/.log

我接下来要做的是在旧工作区中打开 Eclipse 并单击File/Switch Workspace,但我再次看到完全相同的弹出消息。

我打开那个日志文件,下面是它的摘录,我想它描述了这个问题:

org.osgi.framework.BundleException: Exception in org.eclipse.core.resources.ResourcesPlugin.start() of bundle org.eclipse.core.resources.
Caused by: org.eclipse.core.internal.dtree.ObjectNotFoundException: Tree element '/BarApp/bin/jarlist.cache' not found.

但我已将 jarlist.cache 文件放入 bin 目录!

此外,它再次抱怨缺少 jarlist.cache 文件,除此之外:

java.lang.NoClassDefFoundError: org/eclipse/core/resources/IContainer
Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.core.resources (78).
Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.core.resources.ResourcesPlugin.start() of bundle org.eclipse.core.resources.
Caused by: org.eclipse.core.internal.dtree.ObjectNotFoundException: Tree element '/BarApp/bin/jarlist.cache' not found.

我想再次强调 jar list.cache 文件存在于所需目录中。请帮助我的人。如果您需要,我可以显示整个日志文件内容

4

0 回答 0