华为,logcat中没有显示的日志我的应用程序? [英] Huawei, logcat not showing the log for my app?

查看:575
本文介绍了华为,logcat中没有显示的日志我的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

确定,logcat的是显示系统日志,但它没有显示在我的华为Ascend应用程序日志。如果我切换到另一种设备,如我的Galaxy Nexus的或的Nexus 7则对于相同的应用程序的显示方式(同一APK偶数)日志。

OK, logcat is showing system logs but it is not showing application log on my Huawei Ascend. If I switch to another device such as my Galaxy Nexus or Nexus 7 then for the same app (same APK even) log is displayed.

在华为Ascend运行的是Android 4.1.1,它具有USB调试接通,开发商的选择。出现这种情况,以获得在命令行或的IntelliJ logcat的运行。而且我确保了正确的设备选择 - 其实我只是在一个时间插入一个单一的设备研究。我试着重新启动亚行,清除它的缓冲区等

The Huawei Ascend is running Android 4.1.1, it has USB debugging switched on in developer options. This occurs for logcat run from either the command line or from IntelliJ. And I'm making sure that the correct device is selected - in fact I'm only plugging a single device in at a time. I've tried restarting adb, clearing it's buffer etc

我可以看到应用程序正在启动对华为,我甚至得到显示,该活动已开始系统日志。但是,与对其他设备我没有得到任何的应用程序日志中的活动#的onCreate(或其他地方)。

I can see that the app is starting on the Huawei, I even get system logs showing that the Activity has started. But unlike on the other devices I get no app log in the Activity#onCreate (or from anywhere else).

08-08 20:55:44.050: INFO/WindowManager(431): Switching to real app window: Window{41ae8780 au.com.xandar.wirelesstiming.timekeeper/au.com.xandar.wirelesstiming.timekeeper.TimeKeeperActivity paused=false}
08-08 20:55:44.180: INFO/ActivityManager(431): Displayed au.com.xandar.wirelesstiming.timekeeper/.TimeKeeperActivity: +387ms

如何在应用程序日志不会得到传递?

How can the application log not be getting delivered?

推荐答案

OK,因为我有另一个华为Ascend我遇到了同样的问题。这一次,我有确切的答案。按照这些指令(从denispyr的回答在为什么不logcat的在显示任何东西我的Andr​​oid?

OK, since I had another Huawei Ascend I ran into the same problem. This time I have the exact answer. Follow these instructions (from denispyr's answer on Why doesn't logcat show anything in my Android?)

拨号

*#*#2846579#*#*

,你会看到一个隐藏菜单。去Proj​​ectMenu /背景设置/日志设置和定义日志可用性(日志动开关)和级别(日志级别设置)。

and you will see a hidden menu. Go ProjectMenu / Background Setting / Log setting and define the log availability (log swith) and level (log level setting).

然后请确保您重新启动手机。

And then make sure you restart your phone.

请注意,这可能只适用于华为手机。

Please note this probably only applies to Huawei phones.

这篇关于华为,logcat中没有显示的日志我的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆