每当我在我的 AVD 中取消选中“启用数据”(设置-> 移动网络设置)时,我都会收到以下错误,我失去了 LogCat 连接,我必须重新启动 AVD/Eclipse:
[2012-10-31 16:11:07 - Unexpected error while launching logcat. Try reselecting the device.] device not found
com.android.ddmlib.AdbCommandRejectedException: device not found
at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:752)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:373)
at com.android.ddmlib.Device.executeShellCommand(Device.java:462)
at com.android.ddmuilib.logcat.LogCatReceiver$1.run(LogCatReceiver.java:109)
at java.lang.Thread.run(Unknown Source)
这种行为是预期的吗?我可以做些什么来“重新附加”LogCat 吗?
编辑:我在第二台电脑上试过这个。这次没有错误日志,但 LogCat 通信仍然丢失。