Android DDMS (Monitor) does not start if the user profile contains a space in it

If I use a Windows account such as "User", DDMS can be launched from Android Studio.

If I use a Windows account that contains a space such as "Test User", DDMS does not start:

enter image description here

The following is displayed in the log:

!SESSION 2013-07-02 12:30:07.031 ----------------------------------------------- eclipse.buildId=unknown java.version=1.7.0_25 java.vendor=Oracle Corporation BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_IE Command-line arguments: -os win32 -ws win32 -arch x86 !ENTRY org.eclipse.osgi 4 0 2013-07-02 12:30:07.730 !MESSAGE Application error !STACK 1 java.io.IOException: The folder "C:\Users\Test%20User\.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(Unknown Source) 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:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) 

It does not work for 32-bit or 64-bit versions of the SDK and does not interrupt due to the fact that "Android tools installed in the directory with spaces in the path do not work correctly" (they work in the "User" account)

Has anyone solved this problem?

+30
android ddms
Jul 02 '13 at 11:35
source share
4 answers

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

  • Open a command prompt as an administrator. (shift + ctrl + (input or click) on the icon will do this)
  • cd C: \ Users
  • mklink / d "Test% 20User" "Test User"
  • Run monitor.bat and it should work.
+78
Sep 18 '13 at 15:39
source share

I had the same error.

Launch Android Studio using administrative permissions

It worked for me.

+27
Oct 21 '13 at 14:26
source share

I have the same problem, I fixed it by running android studio as administrator,

otherwise, you can run it manually when needed.

+7
Jun 12 '14 at 10:36
source share

I solved the problem of providing the full Users control in the directory

 C:\Users\hans%20naert\\.android\monitor-workspace 

(the space in the username is converted to% 20 ... => for me, "Hans Naert" becomes "hans% 20naert"

screencapture ofsetsettings enter image description here

0
Dec 13 '15 at 9:52
source share



All Articles