5

现在 JDK 9 正式发布,我已经升级了我的 Mac OSX 以运行 Java SE Development Kit 9。

Android 设备监视器 ( /Library/Android/sdk/tools/monitor) 不再工作。这里的日志:

!ENTRY org.eclipse.osgi 4 0 2017-09-24 13:30:55.822
`enter code here`!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:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

我已经能够通过添加解决 Eclipse Oxygen 的类似问题

--add-modules=java.se.ee

eclipse.ini,正如在这个 SO 回答 Neon: how to run on jdk9 中解释的那样?. 这解决了 100% 的 Eclipse 问题,所以现在我可以毫无问题地运行 eclipse,但 Android 设备监视器仍然没有运行。

我已经尝试过在启动 Eclipse 时出现“无法获取应用程序服务”错误的解决方案,但没有成功。

还有什么必须配置的吗?

4

0 回答 0