2011-03-07 51 views
3

我使用Eclipse 3.4.2并刚刚安装了用于eclipse的Android SDK插件。但是,安装后,当我启动Eclipse,我得到错误信息插件安装后的Eclipse启动问题

enter image description here

以下是日志说

!SESSION 2011-03-07 11:13:53.163 ----------------------------------------------- 
eclipse.buildId=M20090211-1700 
java.version=1.6.0_23 
java.vendor=Sun Microsystems Inc. 
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US 
Command-line arguments: -os win32 -ws win32 -arch x86 

!ENTRY org.eclipse.osgi 4 0 2011-03-07 11:13:53.632 
!MESSAGE Application error 
!STACK 1 
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini). 
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386) 
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 
    at java.lang.reflect.Method.invoke(Unknown Source) 
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) 
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) 
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236) 

!ENTRY org.eclipse.osgi 2 0 2011-03-07 11:13:53.647 
!MESSAGE One or more bundles are not resolved because the following root constraints are not resolved: 
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-07 11:13:53.647 
!MESSAGE Bundle reference:file:plugins\com.android.ide.eclipse.traceview_10.0.0.v201102162101-104271.jar was not resolved. 
!SUBENTRY 2 com.android.ide.eclipse.traceview 2 0 2011-03-07 11:13:53.647 
!MESSAGE Missing required bundle org.eclipse.core.runtime_0.0.0. 
!SUBENTRY 2 com.android.ide.eclipse.traceview 2 0 2011-03-07 11:13:53.647 
!MESSAGE Missing required bundle org.eclipse.ui.ide_0.0.0. 
!SUBENTRY 2 com.android.ide.eclipse.traceview 2 0 2011-03-07 11:13:53.648 
!MESSAGE Missing required bundle org.eclipse.ui_0.0.0. 
!SUBENTRY 2 com.android.ide.eclipse.traceview 2 0 2011-03-07 11:13:53.648 
!MESSAGE Missing required bundle org.eclipse.jdt.core_0.0.0. 
!SUBENTRY 2 com.android.ide.eclipse.traceview 2 0 2011-03-07 11:13:53.648 
!MESSAGE Missing required bundle org.eclipse.core.resources_0.0.0. 
!SUBENTRY 2 com.android.ide.eclipse.traceview 2 0 2011-03-07 11:13:53.648 
!MESSAGE Missing required bundle org.eclipse.core.filesystem_0.0.0. 
!SUBENTRY 2 com.android.ide.eclipse.traceview 2 0 2011-03-07 11:13:53.648 
!MESSAGE Missing required bundle org.eclipse.jdt.ui_0.0.0. 
!SUBENTRY 1 org.eclipse.osgi 2 0 2011-03-07 11:13:53.648 
!MESSAGE Bundle reference:file:plugins\com.android.ide.eclipse.hierarchyviewer_10.0.0.v201102162101-104271.jar was not resolved. 
!SUBENTRY 2 com.android.ide.eclipse.hierarchyviewer 2 0 2011-03-07 11:13:53.648 

有没有人遇到同样的问题?

+0

看起来你错过了错误消息中列出的两个jar文件。你是否证实他们在场? – 2011-03-07 17:28:41

+0

是的,我已经有了这些jar文件。 – yogsma 2011-03-07 17:37:17

+0

可以通过更改日食配置来解决,我有同样的问题,只是想避免重新安装日食和ADT – 2012-09-01 07:28:57

回答

2

我已经通过重新安装eclipse解决了这个问题,而不是我想要的,但是我现在就要用这个。

2

许多人有reported similar problems。该主题有几点建议,但没有明确的解决方案。只有其中一条建议对我有用 - 这是一种将eclipse从命令行恢复到先前状态的方法。它来自this blog post

在终端:

  1. 进入包含你的eclipse文件夹安装
  2. ls -lt p2/org.eclipse.equinox.p2.engine/profileRegistry/<som_profile_name>.profile/
  3. 在我的情况<som_profile_name>epp.package.java.profile,在保罗的博客SDKProfile
  4. 您应该看到像1372434812558.profile.gz这样的文件。
  5. 选择一个最近与你约会的感觉肯定是好的
  6. 放在一起如下命令:

    eclipse -noSplash -application org.eclipse.equinox.p2.director -repository file:$(pwd)/p2/org.eclipse.equinox.p2.engine/profileRegistry/<som_profile_name>.profile -profile <som_profile_name> -revert 1372434812558

  7. 如果还是不行,请尝试添加-destination .(我做到了成功与-destination,但我认为它应该没有工作)