安卓开发时遇到问题: 

Unable to open log device '/dev/log/main':No such file or directory
$ adb logcat info: log device is empty!

关闭了log,解决方法:

摘自:http://stackoverflow.com/questions/6941710/unable-to-open-log-device-dev-log-main-no-such-file-or-directory

Dial this: *#*#2846579#*#*   
Service menu will appear.
Go to “ProjectMenu” -> “Background Setting” -> “Log Setting”  //Log设置中,设置LOG开关为开。

Open “Log switch” and set it to ON.  // 设置log级别为Verbose
Open “Log level setting” and set the log level you wish.

Reboot the phone.

 

 posted on 2013-05-11 06:00  _张伟杰  阅读(555)  评论(0)    收藏  举报