为什么logcat在我的Android中不显示任何东西(当用Eclipse开发应用程序时)?

它只是不打印任何东西。它是空的。


当前回答

也许你安装了Mylyn ?

http://code.google.com/p/android/issues/detail?id=1808

其他回答

如果你尝试了所有其他的方法,仍然一无所获。我有另一个简单的方法。

下载旧版本的ADB,然后再试一次。它可能是工作的,至少为我工作与Android 7.0手机(供应商停止更新)。

这里是旧版本的有用链接。

下面是一个非常愚蠢的答案,但它确实发生了!

当我不在的时候,我的猫踩了空格键,在搜索栏中输入[space]xN。

结果是一个空的Log Cat。我试着重新启动,浪费了大约1个小时才意识到我应该清空搜索栏。

TLDR;清除你的日志猫搜索栏!

一加设备和Ubuntu操作系统:

Install Wine on Ubuntu Install ADB tools on Ubuntu sudo apt-get install android-tools-adb Now, attach your device to PC with USB. Open mounted "One Plus Drivers". A disc like icon Right click on OnePlus_USB_Drivers_setup.exe and run with Wine Then open the terminal in the present drive where your "OnePlus_USB_Drivers_setup.exe" and other driver files exists. And run ./adb_config_Linux_OSX.sh or sh adb_config_Linux_OSX.sh Close this terminal Open a new terminal and run adb server-start

你的一加设备会提示你将PC识别为调试代理。

现在,在终端上运行。它应该会显示你的设备。

adb devices

参考:[解决]Android Studio不识别我的一加二在Linux

也许你安装了Mylyn ?

http://code.google.com/p/android/issues/detail?id=1808

我认为您还没有选择运行应用程序的设备或模拟器。

在Eclipse中,转到DDMS透视图并选择您正在其上运行应用程序的设备或模拟器。

(注意:无需重启Eclipse)