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

ぃ、小莉子 提交于 2019-12-02 20:03:48
Deivison Sporteman

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.

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

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

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

This helped me:

1)Disconnect device

2)Kill adb from taskmanager

3)Clean project

4)Connect device

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

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

mmmartinnn

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.

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.

Rahul Jain

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
        ...
    }
}

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.

lingyfh

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

there is a simple

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