0

我刚刚将 Android SDK 插件更新到最新版本 22,这迫使 Eclipse Juno 也更新到相同版本。Eclipse 尝试自动重启后,我无法再打开我的 Android 开发环境,并出现错误消息:“发生错误。请参阅日志文件:C:\eclipse\configuration\xxxxx.log

下面是该日志的顶部。请建议我需要做什么才能让它再次工作。

    !SESSION 2013-08-25 23:32:29.187 -----------------------------------------------
eclipse.buildId=M20130204-1200
java.version=1.7.0_07
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_NZ
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.osgi 2 0 2013-08-25 23:32:30.562
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved:
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-08-25 23:32:30.562
!MESSAGE Bundle reference:file:plugins/org.eclipse.wb.core_1.5.2.r42x201302111859.jar was not resolved.
!SUBENTRY 2 org.eclipse.wb.core 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing required bundle org.eclipse.jface.text_0.0.0.
!SUBENTRY 2 org.eclipse.wb.core 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing required bundle org.eclipse.ui_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-08-25 23:32:30.562
!MESSAGE Bundle reference:file:plugins/org.eclipse.wb.swing.java6_1.5.2.r42x201302112024.jar was not resolved.
!SUBENTRY 2 org.eclipse.wb.swing.java6 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing required bundle org.eclipse.jface_0.0.0.
!SUBENTRY 2 org.eclipse.wb.swing.java6 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing required bundle org.eclipse.wb.swing_0.0.0.
!SUBENTRY 2 org.eclipse.wb.swing.java6 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing required bundle org.eclipse.ui.workbench_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-08-25 23:32:30.562
!MESSAGE Bundle reference:file:plugins/org.eclipse.jdt.debug.ui_3.6.100.v20120530-1425.jar was not resolved.
!SUBENTRY 2 org.eclipse.jdt.debug.ui 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing required bundle org.eclipse.ui_[3.5.0,4.0.0).
!SUBENTRY 2 org.eclipse.jdt.debug.ui 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing required bundle org.eclipse.jface.text_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-08-25 23:32:30.562
!MESSAGE Bundle reference:file:plugins/org.eclipse.e4.ui.workbench.swt_0.10.3.v20130124-133900.jar was not resolved.
!SUBENTRY 2 org.eclipse.e4.ui.workbench.swt 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing required bundle org.eclipse.jface_[3.5.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-08-25 23:32:30.562
!MESSAGE Bundle reference:file:plugins/org.eclipse.equinox.p2.ui.sdk.scheduler_1.1.0.v20110815-1744.jar was not resolved.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.sdk.scheduler 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing imported package org.eclipse.equinox.internal.p2.ui.query_0.0.0.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.sdk.scheduler 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing required bundle org.eclipse.equinox.p2.ui_0.0.0.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.sdk.scheduler 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing imported package org.eclipse.equinox.p2.ui_[2.0.0,3.0.0).
!SUBENTRY 2 org.eclipse.equinox.p2.ui.sdk.scheduler 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing required bundle org.eclipse.ui_0.0.0.
!SUBENTRY 2 org.eclipse.equinox.p2.ui.sdk.scheduler 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.5))(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=CDC/Foundation)(version=1.1)))".
!SUBENTRY 2 org.eclipse.equinox.p2.ui.sdk.scheduler 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing imported package org.eclipse.equinox.internal.p2.ui.actions_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-08-25 23:32:30.562
!MESSAGE Bundle reference:file:plugins/org.eclipse.wb.discovery.ui_1.5.2.r42x201302111927.jar was not resolved.
!SUBENTRY 2 org.eclipse.wb.discovery.ui 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing required bundle org.eclipse.ui_0.0.0.
!SUBENTRY 2 org.eclipse.wb.discovery.ui 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing required bundle org.eclipse.equinox.p2.ui_0.0.0.
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-08-25 23:32:30.562
!MESSAGE Bundle reference:file:plugins/org.eclipse.jface.databinding_1.6.0.v20120912-132807.jar was not resolved.
!SUBENTRY 2 org.eclipse.jface.databinding 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=CDC/Foundation)(version=1.0))(&(osgi.ee=JavaSE)(version=1.3)))".
!SUBENTRY 2 org.eclipse.jface.databinding 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing required bundle org.eclipse.jface_[3.2.0,4.0.0).
!SUBENTRY 1 org.eclipse.osgi 2 0 2013-08-25 23:32:30.562
!MESSAGE Bundle reference:file:plugins/org.eclipse.m2e.refactoring_1.3.0.20130129-0926.jar was not resolved.
!SUBENTRY 2 org.eclipse.m2e.refactoring 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing required bundle org.eclipse.compare_0.0.0.
!SUBENTRY 2 org.eclipse.m2e.refactoring 2 0 2013-08-25 23:32:30.562
!MESSAGE Missing required bundle org.eclipse.ui.workbench_0.0.0.
4

4 回答 4

2

I know this is kind of the "tech-support-solution" but why don't you download a fresh copy of Eclipse, set up the ADT plugin and open the workspace with the new Eclipse? No need to uninstall because it isn't installed in the first place.

Worst case - it won't work but won't change anything.

于 2013-08-25T13:58:30.757 回答
1

最终也是唯一有效的解决方案是:

  1. 转到 Eclipse 主文件夹 (C:\eclipse)
  2. 在所有子文件夹中搜索单词“android”(我使用过 Total Commander 文件管理器)
  3. 删除搜索结果中与“android”相关的所有文件。
  4. 重启日食。
  5. 这终于让我可以重新安装 ADT 插件并重新启动 eclipse 开发环境,而无需重新安装整个东西。与尝试 (a) 卸载 eclipse、(b) 重新安装和 (c) 重新创建整个工作环境(包括示例应用程序、库等)相比,这节省了我大量的时间,这需要很长时间。

最初的建议来自这里,我对此表示赞成。

于 2013-08-29T02:22:13.700 回答
0

不久前我的 Eclipse 遇到了同样的问题,我删除了现有的 Eclipse(大错误)并安装了一个新版本,然后我从ADT 插件链接下载了 ADT 插件,之后转到帮助 - > 安装新软件 - >添加 -> 存档 -> 下载的 ADT 插件 zip 的路径。不要尝试安装 Android 4.3(API 18)。重新启动eclipse,我应该工作。至少它对我有用。

于 2013-08-25T14:05:31.240 回答
0

我已按照该用户的建议解决了最初的问题

在 Eclipse 安装文件夹的顶部恢复我的 Eclipse 备份副本。这让我可以重新启动 Eclipse,然后使用 Android SDK Manager 下载最新版本的 Android 4.3 和 SDK 22.0.5 工具(以前无法下载)。经过漫长的更新过程后,我现在在打开 Eclipse 时收到一条不同的错误消息:

“此 Android SDK 需要 Android Developer Toolkit 版本 22.0.0 或更高版本。当前版本为 21.1.0.v201...请更新 ADT。”

当我尝试检查可用更新时(通过帮助 > 检查更新...),我收到一条消息“操作无法完成,因为 JDT/Core 版本 2.1.1.201 的对象团队补丁...不适用于当前配置,不会安装。”

当我尝试更新 ADT 插件(通过帮助 > 安装新软件...)时,我收到一条消息“所有项目(开发人员工具和 NDK 插件)都已安装”。

如何摆脱这个“Object Teams Patch”错误消息以及为什么我从 Eclipse 收到令人困惑的消息,即 ADT 插件不是最新的?

用 Eclipse 可以做些什么来解决这个令人沮丧的问题?

于 2013-08-25T14:57:00.693 回答