Android - 更新到版本22后无法打开Eclipse

时间:2013-08-25 11:44:42

标签: android eclipse

我刚刚将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 个答案:

答案 0 :(得分:2)

我知道这是“技术支持解决方案”,但为什么不下载Eclipse的新副本,设置ADT插件并使用新的Eclipse打开工作区?无需卸载,因为它首先没有安装。

最坏的情况 - 它不起作用但不会改变任何东西。

答案 1 :(得分:1)

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

  1. 转到eclipse主文件夹(C:\ eclipse)
  2. 在所有子文件夹中搜索“android”字样(我使用过Total Commander文件管理器)
  3. 删除所有与'android'相关的文件,如搜索结果中所示。
  4. 重启日食。
  5. 这最终允许我重新安装ADT插件并重启eclipse 开发环境,无需再次重新安装整个东西。与尝试(a)卸载eclipse,(b)再次安装eclipse,以及(c)重新创建整个工作环境(包括样本应用程序,库等)相比,这节省了大量时间。
  6. 最初的建议来自here,我已经投票了。

答案 2 :(得分:0)

我前一段时间遇到了同样的问题,我删除了现有的eclipse(大错误)并安装了一个新版本,然后我从ADT Plugin link下载了ADT插件,之后转到帮助 - &gt ;安装新软件 - >添加 - >档案 - >您下载的ADT插件的路径zip.DO不要尝试安装Android 4.3(API 18)。重启eclipse,我应该工作。至少它对我有用。

答案 3 :(得分:0)

我已按照this user

的建议解决了最初的问题

在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插件)”。

如何摆脱这个“对象团队修补程序”错误消息以及为什么我从Eclipse中收到ADT插件不是最新的令人困惑的消息?

如何使用Eclipse解决这个令人沮丧的问题?