Android Studio, My APP not showing in LogCat out put

纵饮孤独 提交于 2019-12-12 01:23:02

问题


I am running my app in debug mode. But it is not showing the Logcat.

The logcat is working and prints lots of rubbish. At the top next to the device connected it says. No Debuggable Application. how came ?


回答1:


I finally found a solution by: @nick-unuchek - Than you

Android Studio doesn't display logs by package name

Logs wasn't display because my app doesn't display in process.

So finally I got it working, by: Click on

enter image description here

Checking 'Show all processes' checkbox!

BUT as you see in the question, checkbox was on at the beginning, so there were multiple issues.

To summarize, these are other actions to be done:

Kill all adb processes (use ps -x | grep adb and kill -9 ****) adb start-server in terminal Reconnect device adb device (to make sure device is connected successfully) Make sure Android DDMS Devices | logcat shows your app and only one device is listed. Check Show all processes checkbox




回答2:


Go to your build.gradle and set debuggable true on the build type you want. That should fix it



来源:https://stackoverflow.com/questions/31226686/android-studio-my-app-not-showing-in-logcat-out-put

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!