为什么logcat在我的Android中不显示任何东西(当用Eclipse开发应用程序时)?
它只是不打印任何东西。它是空的。
为什么logcat在我的Android中不显示任何东西(当用Eclipse开发应用程序时)?
它只是不打印任何东西。它是空的。
当前回答
如果你在手机上使用CyanogenMod,它将默认禁用日志记录。试试这个方法:
在您的设备中,打开“/system/etc/init. conf”文件。d /”文件夹 如果有很多文件,试着打开每个文件并找到这一行:
rm /dev/log/main
现在,像这样注释这一行:# rm /dev/log/main
保存文件并重新启动。
其他回答
除了重新启动Eclipse,对我有用的还有:
删除自定义过滤器
删除所有过滤器后,logcat再次被文本填充
也许你安装了Mylyn ?
http://code.google.com/p/android/issues/detail?id=1808
一加设备和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
我也遇到过同样的问题,但我的解决方案要基本得多:
如果LogCat面板在Eclipse中为空,则模拟器没有焦点。转到DDMS透视图,并尝试单击Devices面板(左上角屏幕)中的'emulator'条目。
我偶尔也遇到这种情况。关闭和重新打开Eclipse似乎可以解决这个问题。