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

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


当前回答

如果在设备面板中单击没有带来垃圾邮件,请从快照按钮右侧的三角形中使用下拉菜单中的reset adb。

其他回答

我也遇到过同样的问题,但在我的情况下,当其他设备连接时显示日志,而当我的设备连接时不显示日志。

我花了几天时间,终于在重启手机时解决了这个问题。

可能您的设备上没有启用日志。 尝试运行以下命令。

adb shell
echo 1 > /sys/kernel/logger/log_main/enable

我也有同样的问题。不需要重新启动Eclipse或清理项目。你可以这样做:

点击eclipse右下角的LogCat图标。 在保存的过滤器窗格(左侧),双击你的项目包(在我的情况下是com.apps. *)。 在弹出的日志信息过滤设置中,选择“按日志级别”的所需选项。你可以选择详细,信息,错误等。 单击Ok。 运行/调试项目。

Dial

*#*#2846579#*#*

你会看到一个隐藏的菜单。>后台设置>日志设置,定义日志可用性(日志开关)和级别(日志级别设置)。

请注意,这可能只适用于华为手机,因为Ideos X3(这里)是在荣耀U8860上测试的。

一加设备和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