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

前端 未结 12 1453
一生所求
一生所求 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:02

    Make sure you have your DDMS window closed. If it is open, your logs might be visible there but not in Android Studio.

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

    you should make share your IDE(Intellij or AS) Build Variants settings

    there is a simple

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

    Just click on 'debug icon'(BUG icon) next to 'run icon'(Arrow icon) then u can see app in logcat

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

    I had the same issue. As in this picture, instead of "app", it was class name. So click it and select "app" and the problem was solved.

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

    Please make sure to have the android property debuggable = "true" in the application tag AndroidManifest.xml

    **<application  android:debuggable="true"> 
    </application>**
    

    Also, if you have multiple build variants (ex. debug, alpha, release) you may need to check which build you are attempting to debug and set the debuggable true attribute accordingly in the build.gradle

    buildTypes {
        debug {
            ...
            debuggable true
            ...
        }
        alpha {
            ...
            debuggable true
            ...
        }
        release {
            ...
            debuggable false
            ...
        }
    }
    
    0 讨论(0)
  • 2021-02-02 07:13

    In my case I used to use 2 Android Studio's (stable and canary) so the reason of the problem was this.

    So, if you are running another IDE such as another Android Studio or Eclipse this could be the problem.

    Solution: Close one of the IDE and if "Enable ADB Integration" is already enabled disabling and re-enabling solves it

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