2011-03-07 64 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,但我認爲它應該沒有工作)