问题描述
当我在 Android Studio 中单击 ADM 图标时,日志中出现以下错误.我看到这里已经有一个关于这个的线程,但解决方案似乎是针对 eclipse 的.但是,今天 gradle 方面存在一些问题,因此我将属性文件中的 https 更改为 http.我能够导入该项目.但是,在运行它时崩溃了,我想查看日志并打开 ADM,但它会弹出一条带有日志文件的消息.以下是日志文件的结尾
I get following error in logs when i click on ADM icon in my android studio. I saw there was already a thread here about this but the solution seems to be for eclipse. However, there is some issue on gradle side today so i changed the https to http in my properties file. I was able to import the project. However, while running it crashes, i want to see the logs and open ADM but it pops up a message with a log file. Following is the end of the log file
!ENTRY org.eclipse.osgi 4 0 2015-04-11 19:04:38.452!MESSAGE 应用程序错误!堆栈 1java.lang.NullPointerException在 org.eclipse.core.runtime.URIUtil.toURI(URIUtil.java:280)在 org.eclipse.e4.ui.internal.workbench.ResourceHandler.loadMostRecentModel(ResourceHandler.java:127)在 org.eclipse.e4.ui.internal.workbench.swt.E4Application.loadApplicationModel(E4Application.java:370)在 org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:220)在 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(Workbench.java:543)在 org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)在 com.android.ide.eclipse.monitor.MonitorApplication.start(MonitorApplication.java:86)在 org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)在 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)在 java.lang.reflect.Method.invoke(Method.java:606)在 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)在 org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)在 org.eclipse.equinox.launcher.Main.run(Main.java:1438)
!ENTRY org.eclipse.osgi 4 0 2015-04-11 19:04:38.452!MESSAGE Application error!STACK 1java.lang.NullPointerException at org.eclipse.core.runtime.URIUtil.toURI(URIUtil.java:280) at org.eclipse.e4.ui.internal.workbench.ResourceHandler.loadMostRecentModel(ResourceHandler.java:127) at org.eclipse.e4.ui.internal.workbench.swt.E4Application.loadApplicationModel(E4Application.java:370) at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:220) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:557) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at com.android.ide.eclipse.monitor.MonitorApplication.start(MonitorApplication.java:86) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) 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)
可能是因为以下 gradle 证书问题?导入项目时Android studio中的Gradle同步错误
Could it be because of following gradle certificate issue?Gradle sync error in Android studio when importing project
谢谢
推荐答案
确保没有其他监视器应用实例正在运行.如果 Android Studio 崩溃或其他原因,可能会发生这种情况.
Ensure that no other instance of monitor app is running. It may happen if Android Studio crashes or otherwise.
杀死 monitor
进程并重新启动.
Kill the monitor
process and restart.
另见:https://code.google.com/p/android/issues/detail?id=72420
这篇关于android设备监视器没有出现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!