无法打开Android设备监视器

时间:2016-09-12 12:24:15

标签: android-device-monitor

我正在使用android studio。我需要在SQLite中存储数据,但我无法打开Android设备监视器。

错误消息:

检查1473682358409.log。

1473682358409.Log:

!MESSAGE应用程序错误 !堆栈1 java.io.FileNotFoundException:C:\ Users \ UserName.android \ monitor-workspace.metadata.lock(访问被拒绝)     在java.io.RandomAccessFile.open0(本机方法)     在java.io.RandomAccessFile.open(RandomAccessFile.java:316)     在java.io.RandomAccessFile。(RandomAccessFile.java:243)     在org.eclipse.core.runtime.internal.adaptor.Locker_JavaNio.lock(Locker_JavaNio.java:33)     在org.eclipse.core.runtime.internal.adaptor.BasicLocation.lock(BasicLocation.java:213)     在org.eclipse.core.runtime.internal.adaptor.BasicLocation.set(BasicLocation.java:164)     在org.eclipse.core.runtime.internal.adaptor.BasicLocation.set(BasicLocation.java:137)     在com.android.ide.eclipse.monitor.MonitorApplication.start(MonitorApplication.java:53)     在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)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:497)     在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)

1 个答案:

答案 0 :(得分:1)

尝试以管理员身份运行Android Studio。右键单击SDK图标并选择“Run As Administratotr”..如果失败,请尝试以下操作: Android DDMS (Monitor) does not start if user profile contains a space in it