在android studio中使用设备调试时,Android Logcat为空 [英] Android Logcat is empty when debug with device in android studio

查看:137
本文介绍了在android studio中使用设备调试时,Android Logcat为空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在 android studio 中使用 android 设备进行调试时,Logcat 什么也没显示.但是当我使用模拟器时,LogCat 会显示所有消息.在实际设备上调试时应该如何查看Logcat消息?

When I try to debug using android device in android studio Logcat shows nothing. But when I use emulator LogCat shows all the messages. How should view the Logcat messages when debugging on actual device?

谢谢!

推荐答案

在 Android studio 0.8.0 中,您应该在运行应用程序之前通过 Tools -> Android 启用 ADB 集成.然后日志猫将正常工作.请注意,如果您在应用运行时禁用 ADB 集成并再次启用它,那么除非您重建项目,否则日志猫不会显示任何内容.

In Android studio 0.8.0 you should enable ADB integration through Tools -> Android, before run your app. Then the log cat will work correctly. Notice that if you make ADB integration disabled while your app is running and again make it enable, then the log cat dosen't show anything unless you rebuild your project.

这篇关于在android studio中使用设备调试时,Android Logcat为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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