无法在Android的Studio中打开DDMS。神秘的Eclipse错误弹出 [英] Unable to open DDMS in Android Studio. Mysterious Eclipse error pops up

查看:3462
本文介绍了无法在Android的Studio中打开DDMS。神秘的Eclipse错误弹出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以在这里我又来了又一个Android的Studio工具的错误。我不认为这一个已经被之前的报道,我找不到它的任何职位。

我想通过点击下面的按钮,打开Android的工作室设备监视器(DDMS):

我每次得到同样的错误。什么是真正令人费解的是,它的一个Eclipse错误,如显示的图像:

所以,它告诉我在Android SDK工作室文件夹中打开日志文件。日志文件包含大量文字,但主要错误报告为:

 项org.eclipse.osgi 4 0 2015年5月27日09:40:53.091
!MESSAGE应用程序错误
!STACK 1
java.io.IOException异常:文件夹C:\用户\ JOHN%20SMITH \ .android \监察工作空间\ .metadata是只读的。
在org.eclipse.core.runtime.internal.adaptor.BasicLocation.lock(BasicLocation.java:206)
在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)
在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)
在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
在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)
 

为什么我无法从Android的Studio中打开DDMS,为什么正试图从Android的Studio中打开DDMS当一个Eclipse错误时,抛出?任何人都可以指导我?有没有人连的见过的这个错误之前?所有答复将感激AP preciated。

编辑:

正如刚才丹尼尔·纽金特在下面的意见,随Studio中的DDMS似乎正好, 完全的同一个在Eclipse中。不知道这是一个线索的问题。并记录在案,我安装我的电脑上的Eclipse维护一些遗留code。

编辑2:

该解决方案是<一个href="http://stackoverflow.com/questions/17424533/android-ddms-monitor-does-not-start-if-user-profile-contains-a-space-in-it/18876626#18876626">here.很多很多的感谢 Sk​​izo 和的黑带对于这一点,你们俩都点上!

解决方案

我认为这个问题是有关您的%20 在你的名字,那么你可以尝试一下这种回答,好像你的:

  

我刚刚碰到这个问题了。我的解决方法是创建一个符号>目录从测试%20User,以测试用户。

链接      
      
  1. 打开一个命令提示符以管理员身份。 (SHIFT + CTRL +(输入或点击)上>图标将做到这一点)
  2.   
  3. CD C:\用户
  4.   
  5. MKLINK / D测试%20User测试用户
  6.   
  7. 启动monitor.bat,它应该工作。
  8.   

So here I go again with yet another Android Studio tools error. I don't think this one has been reported before, I can't find any posts on it.

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

Every time I get the same error. What's really puzzling is that its an Eclipse error, as shown in the image:

So it tells me to open a log file in the Android Studio SDK folder. The log file contains lots 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 am I unable to open DDMS from Android Studio, and why is an Eclipse error thrown when trying to open DDMS from Android Studio ? Can anyone guide me ? Has anyone even seen this error before ? All responses will be gratefully appreciated.

EDIT:

As pointed out by Daniel Nugent in the comments below, the DDMS shipped with Studio seems to be exactly, exactly the same as the one in Eclipse. Wonder if this is a clue to the problem. And for the record, I do have Eclipse installed on my PC for maintaining some legacy code.

EDIT 2:

The solution is here. Many, many thanks to Skizo and Blackbelt for this, both of you were spot-on!

解决方案

I think the problem is about your %20 in your name, then you can try it out this answer, it seems like yours :

I've just come across this problem too. My workaround was to create a symbolic >directory link from "Test%20User" to "Test User".

  1. Open a command prompt as administrator. (shift+ctrl+(enter or click) on the >icon will do this)
  2. cd C:\Users
  3. mklink /d "Test%20User" "Test User"
  4. Launch monitor.bat and it should work.

这篇关于无法在Android的Studio中打开DDMS。神秘的Eclipse错误弹出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆