Android 工作室设备监视器未在 mac 上打开?
Android studio device monitor doesn't open on mac?
我的 Android Studio 版本是 3.0.1 运行 JRE 1.8.0_152 在 Macbook Pro 上。
每次尝试打开设备监视器后都会出现此错误消息:
See the log file
/Users/MyName/Library/Android/sdk/tools/lib/monitor-x86_64/configuration/1516320779478.log.
这是错误日志:
!MESSAGE Missing imported package org.w3c.dom_0.0.0.
!SUBENTRY 2 org.w3c.dom.smil 2 0 2018-01-18 13:26:15.802
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=JavaSE)(version=1.3))(&(osgi.ee=CDC/Foundation)(version=1.0)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2018-01-18 13:26:15.802
!MESSAGE Bundle org.w3c.dom.svg_1.1.0.v201011041433 [175] was not resolved.
!SUBENTRY 2 org.w3c.dom.svg 2 0 2018-01-18 13:26:15.802
!MESSAGE Missing required bundle org.w3c.dom.smil_[1.0.0,1.1.0).
!SUBENTRY 2 org.w3c.dom.svg 2 0 2018-01-18 13:26:15.802
!MESSAGE Missing imported package org.w3c.dom_0.0.0.
!SUBENTRY 2 org.w3c.dom.svg 2 0 2018-01-18 13:26:15.802
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=JavaSE)(version=1.3))(&(osgi.ee=CDC/Foundation)(version=1.0)))".
!ENTRY org.eclipse.osgi 4 0 2018-01-18 13:26:15.804
!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)
我最近刚刚下载了具有推荐设置的 Android Studio,所以我不确定为什么它不能正常运行。我正在为我的系统使用 Java 9,但对于 Android Studio,我正在使用其嵌入式 JDK。到目前为止,我已经尝试过:
- 卸载并重新安装 Android Studio
- 运行 使用 sudo 命令监控设备
- 将 JDK 的路径设置为 Java 9(这似乎不受支持,因为 Gradle 无法同步)
- 正在使用 Homebrew
重新下载 JDK
我无法在网上找到很多 Mac OS 的解决方案,而且我找到的少数几个都没有用。请帮忙!
我知道 Device Monitor 依赖于您在机器上安装的 java 版本。我降级到 Java 8 并且有效。
我的 Android Studio 版本是 3.0.1 运行 JRE 1.8.0_152 在 Macbook Pro 上。
每次尝试打开设备监视器后都会出现此错误消息:
See the log file
/Users/MyName/Library/Android/sdk/tools/lib/monitor-x86_64/configuration/1516320779478.log.
这是错误日志:
!MESSAGE Missing imported package org.w3c.dom_0.0.0.
!SUBENTRY 2 org.w3c.dom.smil 2 0 2018-01-18 13:26:15.802
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=JavaSE)(version=1.3))(&(osgi.ee=CDC/Foundation)(version=1.0)))".
!SUBENTRY 1 org.eclipse.osgi 2 0 2018-01-18 13:26:15.802
!MESSAGE Bundle org.w3c.dom.svg_1.1.0.v201011041433 [175] was not resolved.
!SUBENTRY 2 org.w3c.dom.svg 2 0 2018-01-18 13:26:15.802
!MESSAGE Missing required bundle org.w3c.dom.smil_[1.0.0,1.1.0).
!SUBENTRY 2 org.w3c.dom.svg 2 0 2018-01-18 13:26:15.802
!MESSAGE Missing imported package org.w3c.dom_0.0.0.
!SUBENTRY 2 org.w3c.dom.svg 2 0 2018-01-18 13:26:15.802
!MESSAGE Missing required capability Require-Capability: osgi.ee; filter="(|(&(osgi.ee=JavaSE)(version=1.4))(&(osgi.ee=JavaSE)(version=1.3))(&(osgi.ee=CDC/Foundation)(version=1.0)))".
!ENTRY org.eclipse.osgi 4 0 2018-01-18 13:26:15.804
!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)
我最近刚刚下载了具有推荐设置的 Android Studio,所以我不确定为什么它不能正常运行。我正在为我的系统使用 Java 9,但对于 Android Studio,我正在使用其嵌入式 JDK。到目前为止,我已经尝试过:
- 卸载并重新安装 Android Studio
- 运行 使用 sudo 命令监控设备
- 将 JDK 的路径设置为 Java 9(这似乎不受支持,因为 Gradle 无法同步)
- 正在使用 Homebrew 重新下载 JDK
我无法在网上找到很多 Mac OS 的解决方案,而且我找到的少数几个都没有用。请帮忙!
我知道 Device Monitor 依赖于您在机器上安装的 java 版本。我降级到 Java 8 并且有效。