Failed to open DDMS in Android Studio. Mysterious Eclipse Error Called

So, here I went again with another Android Studio tool error. I do not think that this was previously reported, I can not find any messages about it.

I am trying to open Device Monitor (DDMS) in Android Studio by clicking on the following button:

enter image description here

Every time I get the same error. What really puzzles him is his Eclipse error, as shown in the figure:

enter image description here

So he tells me to open the log file in the Android Studio SDK folder. The log file contains a lot of text, but the main error is reported as:

!ENTRY org.eclipse.osgi 4 0 2015-05-27 09:40:53.091 !MESSAGE Application error !STACK 1 java.io.IOException: The folder "C:\Users\JOHN%20SMITH\.android\monitor-workspace\.metadata" is read-only. at org.eclipse.core.runtime.internal.adaptor.BasicLocation.lock(BasicLocation.java:206) at org.eclipse.core.runtime.internal.adaptor.BasicLocation.set(BasicLocation.java:164) at org.eclipse.core.runtime.internal.adaptor.BasicLocation.set(BasicLocation.java:137) at com.android.ide.eclipse.monitor.MonitorApplication.start(MonitorApplication.java:53) 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:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) 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) 

Why can't I open DDMS from Android Studio and why does an Eclipse error occur when trying to open DDMS from Android Studio? Can anyone guide me? Has anyone even seen this error before? All feedback will be greatly appreciated.

EDIT:

As pointed out by Daniel Nugent in the comments below, the DDMS shipped with Studio looks exactly the same as in Eclipse. I wonder if this is the key to the problem. And for the record, I have Eclipse installed on my PC to support some legacy code.

EDIT 2:

The solution is here . Many, thanks to Skizo and Blackbelt , both of you were there.

+6
android eclipse android-studio android-sdk-tools ddms
May 27 '15 at 4:45
source share
2 answers

I think the problem is with your %20 on your behalf, then you can try this answer , it seems yours:

I also ran into this problem. My workaround was to create a symbolic link to the directory from "Test% 20User" to "Test User".

  • Open a command prompt as an administrator. (shift + ctrl + (type or click) on the icon> do it)
  • cd C: \ Users
  • mklink / d "Test% 20User" "Test User"
  • Run monitor.bat and it should work.
+8
May 27 '15 at 9:54
source share

you must run the application (android Studio) with administrator privileges

0
Sep 17 '15 at 17:40
source share



All Articles