================================
*已解决*:请参阅下面的答案
我不想使用 Eclipse。
从命令行:
模拟器正在运行。adb 服务器正在运行。“adb devices”列表正确,我可以在输出中的 avd 上看到我的实例。
但是,当我从命令行手动启动 DDMS 时,它只是一直在尝试连接。我找不到连接配置问题。
欢迎任何建议(“使用 Eclipse”除外)!
(是的,它在 eclipse 中工作,ddms 显示线程等)
系统:Debian 挤压
更新:我运行 update-java-alternatives 以确保为 "Java(TM) SE Runtime Environment (build 1.6.0_20-b02)" 正确设置了 java。对于经验丰富的 Debian 用户来说,我的 Java 现在变得更糟了,这并不意外……当我从命令行运行 ddms 时,我得到:--
(ddms:9326): Gdk-WARNING **: gdk_window_set_icon_list: icons too large
04:29 E/ddms: Failed to reopen debug port for Selected Client to: 8700
04:29 E/ddms: Invalid argument
java.net.SocketException: Invalid argument
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
at com.android.ddmlib.MonitorThread.reopenDebugSelectedPort(MonitorThread.java:716)
at com.android.ddmlib.MonitorThread.run(MonitorThread.java:226)
04:29 E/DeviceMonitor: Connection attempts: 1
04:30 E/DeviceMonitor: Connection attempts: 2
04:31 E/DeviceMonitor: Connection attempts: 3
04:32 E/DeviceMonitor: Connection attempts: 4
04:33 E/DeviceMonitor: Connection attempts: 5
04:34 E/DeviceMonitor: Connection attempts: 6