LogCat中和放大器;控制台停止使用Eclipse Android模拟器工作 [英] LogCat & Console stopped working with Eclipse Android Emulator
问题描述
控制台和LogCat中停止打印在Eclipse中的Android模拟器。
我收到以下异常在控制台
[2011-11-10十一点04分58秒 - 意外的错误,同时启动logcat的。请尝试重新选择设备。]未找到设备 com.android.ddmlib.AdbCommandRejectedException:未找到设备 在com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:736) 在com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:373) 在com.android.ddmlib.Device.executeShellCommand(Device.java:319) 在com.android.ddmuilib.logcat.LogCatReceiver $ 1.运行(LogCatReceiver.java:100) 在java.lang.Thread.run(来源不明)
通常,当仿真器加载或更新APK有一个在控制台打印输出告诉地位。现在控制台仅仅是空白的。
我确信仿真器在DDMS选项卡中选择。
我试图删除并重新创建的AVD管理模拟器。我重新启动Eclipse和计算机。我也更新所有的Android和Eclipse软件在希望问题可以得到解决。但是,无济于事。
这可能涉及到一个问题,我昨天在我的code。当时我不知道code无休止的循环,所以我不得不停止模拟器中期code运行。
我有一个类似的错误,这是推动我疯了。我刚刚得到它通过执行以下步骤来:
- 在shell或命令提示符下运行:ADB杀死服务器
- 拔掉设备的USB电缆和插头回去。
- 打开设备视图(窗口 - >显示视图 - >其他 - > Android的 - >设备)
- 点击在Android设备查看设备上。
我测试的仿真器和它,如果你重新启动步骤2中的仿真器,而不是工作。
另一种方式我得到它的工作是重新启动Eclipse。但是,这不是一般的理想。
注:logcat中会停止工作,任何时候,我从我的Android设备断开USB连接线(类似杀一个模拟器)
。我承认这可能不会解决您最初的问题,但它可能会帮助其他人谁绊倒在这个问题上。
The Console and LogCat printouts stopped working in Eclipse with the Android Emulator.
I'm getting the following Exception in the Console
[2011-11-10 11:04:58 - 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:736) at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:373) at com.android.ddmlib.Device.executeShellCommand(Device.java:319) at com.android.ddmuilib.logcat.LogCatReceiver$1.run(LogCatReceiver.java:100) at java.lang.Thread.run(Unknown Source)
Usually when the emulator is loading or updating an apk there's a printout in the Console telling the status. Now the Console is just blank.
I made sure the emulator is selected in the DDMS Tab.
I tried deleting and recreating the emulator in the AVD Manager. I restarted eclipse and the computer. I also updated all of the android and eclipse software in hope that the problem may get fixed. But, to no avail.
It may be related to a problem I had in my code yesterday. There was an unending loop in my code, so I had to stop the emulator mid code running.
I was having a similar error and it was driving me crazy. I just got it to work by doing the following steps:
- In a shell or command prompt run: adb kill-server
- Unplug the USB cable from the device and plug it back in.
- Open the devices view (Window -> Show View -> Other -> Android -> Devices)
- Click on the device on the android devices view.
I tested this for the emulator and it works if you relaunch the emulator instead of step 2.
Another way I got it to work was to restart Eclipse. But that's not usually ideal.
Note: Logcat would stop working any time I disconnected the usb cable from my android device (similar to killing an emulator).
I recognize this might not fix your initial issue, but it might help others who stumble on this question.
这篇关于LogCat中和放大器;控制台停止使用Eclipse Android模拟器工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!