问题描述
Android的logcat的应用程序一栏总是空的。我有android的工具最新版本。
Android logcat "application" column is always empty. I have latest version of android tools.
推荐答案
我尝试了所有其他的建议,在这里,没有他们的工作。对我来说,应用程序会显示在模拟器上运行时,却没有关于我Galaxy Nexus的。
I tried all the other suggestions here and none of them worked. For me, the application is shown when running on the emulator, but not on my Galaxy Nexus.
原来我需要添加机器人:可调试=真正的
到<应用>
在我 AndroiManifest.xml
。请参阅http://developer.android.com/guide/topics/manifest/application-element.html.谁使用Eclipse的人没有看到这个问题,因为很明显的Eclipse能够自动根据调试http://developer.android.com/tools/device.html.
It turns out I needed to add android:debuggable="true"
to <application>
in my AndroiManifest.xml
. See http://developer.android.com/guide/topics/manifest/application-element.html. People who use Eclipse don't see this problem because apparently Eclipse enables debugging automatically according to http://developer.android.com/tools/device.html.
显然,应用程序需要被标记为可调试他们生产的ROM调试,但可以无论如何在调试的ROM进行调试,这就是为什么它工作在模拟器上而不是在物理设备。另一种选择可能是建立一个调试ROM和您的设备上安装它。
Apparently apps need to be marked as debuggable to debug them on production ROMs, but they can be debugged anyway on debug ROMs, which is why it works on the emulator but not on the physical device. Another option is probably to build a debug ROM and install it on your device.
您会认为的logcat应该能够找出基于PID的应用程序,而不是需要有专为调试应用程序。
You'd think logcat should be able to figure out the application based on the PID rather than needing to have the app built for debugging.
这篇关于Android的logcat的&QUOT;申请表]列总是空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!