用于Eclipse的Google插件-Eclipse无法启动

配音

我似乎已经从以下网址成功下载了适用于Eclipse的Google插件(v4.2):http//www.gwtproject.org/usingeclipse.html

下载完成后,我勾选“是”以重新启动Eclipse以使插件生效。

它会杀死我当前的Eclipse会话,然后尝试重新启动Eclipse,但在启动屏幕(Android Developer Tools黑色/绿色启动屏幕)之后,只是要求我指定一个新的工作区而已。

然后,它显示以下错误消息:发生错误。看日志文件

从现在开始,我无法打开Eclipse。

到目前为止,我已经采取了一些步骤来纠正此问题:-尝试在指定提示时保持相同的工作区-尝试在提示指定时创建一个新的工作区-使用-clean通过命令提示符启动Eclipse-从.metadata /中删除workbench.xmi .plugins / org.eclipse.e4.workbench-从.metadata / .plugins / org.eclipse.core.resources /文件中删除.snap不存在

当找不到解决方案时,我重新安装了Eclipse。重新安装后,我的工作区和以前的项目工作正常。在我尝试再次安装Google插件之前,一切都是笨拙的。同样的结果第二次发生

这是此事件的日志文件的最后一部分:

!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-02-04 16:24:05.633!MESSAGE无法从捆绑包'142'创建类'org.eclipse.e4.core.commands.CommandServiceAddon'!STACK 0 org.eclipse.e4.core.di.InjectionException:java.lang.ClassCastException:无法将org.eclipse.core.commands.CommandManager强制转换为org.eclipse.e4.core.internal上的org.eclipse.core.commands.CommandManager。 org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:861)的di.MethodRequestor.execute(MethodRequestor.java:63)在org.eclipse.e4.core.internal.di.InjectorImpl。位于org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)的org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl。 java:255),位于org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:185)在org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:71)在org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:105)在org.eclipse的.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:49)在org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:258)在org.eclipse .ui.internal.Workbench $ 5.run(Workbench.java:557)在org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)在org.eclipse.ui.internal.Workbench.createAndRunWorkbench(位于org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)的org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)的Workbench.java:543)。org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)上的eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)在org.eclipse.core.runtime处。位于org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)的internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)(位于org.eclipse.core.runtime.adaptor.EclipseStarter.run( EclipseStarter.java:180)位于sun.reflect.NativeMethodAccessorImpl.invoke0(本地方法)位于sun.reflect.NativeMethodAccessorImpl.invoke(未知源)位于sun.reflect.DelegatingMethodAccessorImpl.invoke(未知源)位于java.lang.reflect.Method org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)处的.invoke(未知源)org.eclipse.equinox处的org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)处的.invokeFramework(Main.java:629) .launcher.Main。在org.eclipse.equinox.launcher.Main.main(Main.java:1414)处运行(Main.java:1438)原因:java.lang.ClassCastException:无法将org.eclipse.core.commands.CommandManager强制转换为org。 org.eclipse.e4.core.internal.contexts.EclipseContext.get(EclipseContext.java:561)处java.lang.Class.cast处的eclipse.core.commands.CommandManager(未知源)org.eclipse.e4.core处的EclipseContext.get(EclipseContext.java:561) .commands.CommandServiceAddon.init(CommandServiceAddon.java:30)at sun.reflect.NativeMethodAccessorImpl.invoke0(本地方法)at sun.reflect.NativeMethodAccessorImpl.invoke(未知源)at sun.reflect.DelegatingMethodAccessorImpl.invoke(未知源) org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)上的java.lang.reflect.Method.invoke(未知源)...另外27个ClassCastException:无法将org.eclipse.core.commands.CommandManager强制转换为org.eclipse.e4.core.internal.contexts.EclipseContext处的java.lang.Class.cast(未知源)的org.eclipse.core.commands.CommandManager。在org.eclipse.e4.core.commands.CommandServiceAddon.init(CommandServiceAddon.java:30)处获取(EclipseContext.java:561),在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处获取。未知源)位于sun.reflect.DelegatingMethodAccessorImpl.invoke(未知源)位于java.lang.reflect.Method.invoke(未知源)位于org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java: 56)...另外27个ClassCastException:无法将org.eclipse.core.commands.CommandManager强制转换为org.eclipse.e4.core.internal.contexts.EclipseContext处的java.lang.Class.cast(未知源)的org.eclipse.core.commands.CommandManager。在org.eclipse.e4.core.commands.CommandServiceAddon.init(CommandServiceAddon.java:30)处获取(EclipseContext.java:561),在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处获取。未知源)位于sun.reflect.DelegatingMethodAccessorImpl.invoke(未知源)位于java.lang.reflect.Method.invoke(未知源)位于org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java: 56)...另外27个org.eclipse.e4.core.commands.CommandServiceAddon.init(CommandServiceAddon.java:30)处的contexts.EclipseContext.get(EclipseContext.java:561)在sun.reflect处的sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)处。 org.eclipse.e4.core.internal.di.MethodRequestor.execute(sun.reflect.DelegatingMethodAccessorImpl.invoke(未知源)的java.lang.reflect.Method.invoke(未知源)的org.eclipse.e4.core.internal.di.MethodRequestor.execute( MethodRequestor.java:56)...还有27个org.eclipse.e4.core.commands.CommandServiceAddon.init(CommandServiceAddon.java:30)处的contexts.EclipseContext.get(EclipseContext.java:561)在sun.reflect处的sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)处。 org.eclipse.e4.core.internal.di.MethodRequestor.execute(sun.reflect.DelegatingMethodAccessorImpl.invoke(未知源)的java.lang.reflect.Method.invoke(未知源)的org.eclipse.e4.core.internal.di.MethodRequestor.execute( MethodRequestor.java:56)...还有27个在org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)处调用(未知源)...另外27个在org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)处调用(未知源)...另外27个

!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-02-04 16:24:05.643!MESSAGE无法从捆绑包'155创建类'org.eclipse.e4.ui.internal.workbench.addons.CommandProcessingAddon' '!STACK 0 org.eclipse.e4.core.di.InjectionException:无法处理“ CommandProcessingAddon.commandService”:未找到参数“ ECommandService”的实际值。在org.eclipse.e4.core.internal.di.InjectorImpl.reportUnresolvedArgument(InjectorImpl.java:396)在org.eclipse.e4.core.internal.di.InjectorImpl.resolveRequestorArgs(InjectorImpl.java:387)在org.eclipse org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)的org.eclipse.e4.core的.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:102) org.eclipse.e4.core.contexts的.internal.di.InjectorImpl.make(InjectorImpl.java:255)。

!ENTRY org.eclipse.e4.ui.workbench 4 0 2014-02-04 16:24:05.651!MESSAGE无法从包'158创建类'org.eclipse.e4.ui.workbench.swt.util.BindingProcessingAddon' '!STACK 0 org.eclipse.e4.core.di.InjectionException:无法处理“ BindingProcessingAddon.commandService”:未找到参数“ ECommandService”的实际值。在org.eclipse.e4.core.internal.di.InjectorImpl.reportUnresolvedArgument(InjectorImpl.java:396)在org.eclipse.e4.core.internal.di.InjectorImpl.resolveRequestorArgs(InjectorImpl.java:387)在org.eclipse org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:321)的org.eclipse.e4.core的.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:102) org.eclipse.e4.core.contexts的.internal.di.InjectorImpl.make(InjectorImpl.java:255)。

!ENTRY org.eclipse.osgi 4 0 2014-02-04 16:24:05.869!MESSAGE应用程序错误!STACK 1 java.lang.NullPointerException在org.eclipse.e4.ui.internal.workbench.E4Workbench.processHierarchy(E4Workbench。 java:172)在org.eclipse.e4.ui.internal.workbench.E4Workbench.init(E4Workbench.java:118)在org.eclipse.e4.ui.internal.workbench.E4Workbench。(E4Workbench.java:69)在org.eclipse.ui.internal.Workbench $ 5.run(Workbench.java:557)在org.eclipse.core处的org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:306) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)上的.databinding.observable.Realm.runWithDefault(Realm.java:332)在org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) ),网址为org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)。org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)上的eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)在org.eclipse.core.runtime处。位于org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)的internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)(位于org.eclipse.core.runtime.adaptor.EclipseStarter.run( EclipseStarter.java:180)位于sun.reflect.NativeMethodAccessorImpl.invoke0(本地方法)位于sun.reflect.NativeMethodAccessorImpl.invoke(未知源)位于sun.reflect.DelegatingMethodAccessorImpl.invoke(未知源)位于java.lang.reflect.Method org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)处的.invoke(未知源)org.eclipse.equinox处的org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)处的.invokeFramework(Main.java:629) .launcher.Main。在org.eclipse.equinox.launcher.Main.main(Main.java:1414)上运行(Main.java:1438)

配音

以前,我是从官方android网站下载ADT SDK捆绑包的。这只会给您Eclipse 4.2,而不是4.3。因此,我最初必须下载4.2版本的Google插件才能与我的Eclipse版本匹配-这是我收到上面概述的错误的地方。

这是我的解决方法:

我没有下载ADT SDK捆绑包,而是仅重新下载了Eclipse,然后分别添加了SDK工具/ ADT插件/平台工具/平台/系统映像。我可以从Eclipse的官方站点下载Eclipse 4.3。

然后,我下载了Google插件4.3。它似乎工作正常。因此,Eclipse 4.2和Google插件4.2组合似乎存在问题。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章