Why do I see “No Debuggable Applications” in Android Studio Logcat while my application is running?

前端 未结 12 1454
一生所求
一生所求 2021-02-02 06:30

I wanted to filter what is shown in the Android Studio Logcat to show what is relevant to my application only. I have chosen Show only selected applications from th

相关标签:
12条回答
  • 2021-02-02 07:14

    Open Android Studio, Go to,

    Tools-> Android -> Enable ADB Integration.

    Open Android Monitor,

    After enabling that, everything should work properly and you can see your package name of your application.

    0 讨论(0)
  • 2021-02-02 07:14

    I found that emulators worked fine with solutions listed above, but my real device never did. Eventually some log came up saying I needed to add the debug flag to my manifest. Since I am using project flavors, it was easy enough to add this to my debug build variant in my gradle file. However, you could also manually add the flag to the manifest as needed - just make sure to not have it there in a production app version.

    0 讨论(0)
  • 2021-02-02 07:17

    With v1.3.1 I disabled & enabled again "Enable ADB Integration" and it worked.

    0 讨论(0)
  • 2021-02-02 07:18

    This helped me:

    1)Disconnect device

    2)Kill adb from taskmanager

    3)Clean project

    4)Connect device

    0 讨论(0)
  • 2021-02-02 07:21

    Go to Android Studio, Tools, Android, Disable ADB Integration and Enable it again. Make sure you clean your project before running !

    0 讨论(0)
  • 2021-02-02 07:26

    For me it was a case of changing the build.gradle file to:

    buildTypes {
        release {
            debuggable true
            ...
            ...
    }
    

    Project sync then the app should appear in the menu which previously only had No debuggable applications.

    0 讨论(0)
提交回复
热议问题