无法从 DDMS 访问 Android 设备
我的设备显示在 DDMS 设备列表中,但我无法对其执行任何操作。例如,文件资源管理器不显示任何内容,并且 log cat 为空白。我只是想截图,而 Eclipse 就崩溃了。当然,我将设备设置为调试 USB 模式。这似乎是一个设备驱动程序问题,但我在升级和生根这款手机时没有遇到任何问题。
我需要对设备做些什么才能使其与 DDMS 通信吗?
更新:我在我的 Android 设备上发现了另一个明显的症状。如果我将其连接到 PC,我的某些 Windows 资源管理器也会冻结。很明显这是一个设备驱动程序(SAMSUNG GALAXY S)问题。也许这与生根或升级有关,因为我在升级和升级之前没有注意到这一点。最近root了我的设备。
UPDATE2:我找到了解决方案,我可以使用远程 ADB 连接设备运行后应用程序在设备中,您可以从 PC 命令中键入以下内容以使其连接到 DDMS。
adb connect 192.168.xxx.xxx:5555
My device is showing on DDMS device list but I cannot do anything with it. For example, file explorer shows nothing and log cat is blank. I just tried to take screenshot, and eclipse just crashed. I of course, made the device in debug usb mode. It seems like a device driver problem but I didn't have any problem with upgrading and rooting this phone.
Is there anything I need to do to the device to make it communicate with DDMS?
UPDATE: I found another visible symptom with my Android device. If I connect it to PC, some of my windows explorer freeze as well. So clearly this is a device driver (SAMSUNG GALAXY S) problem. Maybe it's related to rooting or upgrading since I didn't notice this until I upgraded & rooted my device lately.
UPDATE2: I found a resolution and I could use Remote ADB to connect the device After running the app in the device, you can type following from PC Command to make it connected to DDMS.
adb connect 192.168.xxx.xxx:5555
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
每当我遇到类似的问题时,我都会先拔掉设备,关闭调试,然后重新打开。有时仅此一项就有效。其他时候,需要更新 Android SDK。
Whenever I have had similar problems, I first unplug the device, turn off debugging, then turn it back on. Sometimes this alone works. Other times, an Android SDK update is needed.
在 DDMS 视图(而不是 Java 视图)中,您是否尝试过选择设备?它并不完全直观,但需要突出显示该设备才能让 Logcat 显示输出。
In the DDMS view (as opposed to the Java view), have you tried selecting the device? It's not entirely intuitive, but the device needs to be highlighted for Logcat to show output.