Android logcat “application” column is always empty

后端 未结 7 1777
粉色の甜心
粉色の甜心 2021-02-04 00:32

Android logcat \"application\" column is always empty. I have latest version of android tools.

\"enter

7条回答
  •  走了就别回头了
    2021-02-04 00:57

    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.

    It turns out I needed to add android:debuggable="true" to 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.

    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.

    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.

提交回复
热议问题