No debuggable processes in logcat when phone detected by Android studio

59,754

Solution 1

I had a similar issue, when I was building an app, I could select the device in Logcat, but not the process. (same message, "No Debuggable Processes")

The reason: I was building my app in release, then, when I changed the build variants to debug, I was able to select the process.

Solution 2

You need to enable adb integration, just go to Tools-->Android-->Check Enable ADB Integration

It was a default feature a few versions ago but now it's disabled by default

Solution 3

In my case, using Android Studio 3.1.3, I had to enable "Use libusb backend" checkbox at File-->Settings-->Build, Execution, Deployment-->Debugger

Solution 4

This happens time to time, try these three options in any order:

  1. Restart Android Studio ( preferably with invalidated caches as well )
  2. Restart your phone
  3. Deactivate and reactivate usb debugging

Solution 5

one of the reasons is that your application is marked as not debuggable in the build.gradle file

buildTypes{
    release{
        debuggable false
    }
}

another reason maybe you did not allow ADB integration. You should have Tools->Android->Enable ADB Integration active

Share:
59,754
kimichang
Author by

kimichang

Updated on July 05, 2022

Comments

  • kimichang
    kimichang 6 months

    Everyone!

    I got so confused by android studio. when I plug in my phone to debug apps, logcat can detect my phone, but I can not choose process. It said "no debuggable processes",not common "no debuggable applications".

    My phone is samsung s5 (android 6.0),rooted.

    Any ideas?

    Thanks!

  • koperko
    koperko about 6 years
    What about the cable ? There are cables out there, that have only power transfer capability..
  • kimichang
    kimichang about 6 years
    I can use adb in cmd console with the same cable,it works well.so.... I don't know the root cause about this phenomenon.
  • DzefersonS
    DzefersonS about 6 years
    I don't know then. Maybe you didn't do 1 important thing - when you plug your phone in, when you pull down that little menu in it you should see usb file transfer. If not yet done, select "transferring media files" so it works.
  • kimichang
    kimichang about 6 years
    I can transfer file correctly.because of my reputation on this web,i can not upload picture. or you can see the phenomenon.
  • DzefersonS
    DzefersonS about 6 years
    That is pretty sad. If you could explain what you did overall I could try helping you a bit more.
  • kimichang
    kimichang about 6 years
    I got the answer,maybe it can only debug the app that in your project.i want to debug others' app via attache process. Thanks a lot! you are so kind!
  • Bram
    Bram over 5 years
    "Restart Android Studio" worked like a charm for me.
  • E J Chathuranga
    E J Chathuranga about 5 years
    this should be the answer. +1
  • Louis
    Louis almost 5 years
    Indeed this was not re-enabled by default for me as well
  • Hong
    Hong almost 5 years
    Great tip. I found that I had to use Task Manager to kill process monitor.exe running in the background to restore the normality.
  • Zinc
    Zinc over 4 years
    Yes, they removed it in last Android Studio version. Go to File-->Settings-->Build, Execution, Deployment-->Debugger and ensure that the Logcat output options are checked
  • DevOpsSauce
    DevOpsSauce almost 4 years
    Worked for me using a Google Pixel 2. Thanks!
  • Adam
    Adam almost 4 years
    This setting is not where it is specified above. I have 3.1.3 installed and the setting does not exist in that window.
  • Antonio Papalillo
    Antonio Papalillo almost 4 years
    After reading this answer I set "debuggable true" in a custom signed debug variant and it worked. Thanks!
  • haggy
    haggy over 3 years
    This was exactly my issue. Thanks!
  • Aman Goyal
    Aman Goyal over 3 years
    after tried all these solutions its not working for me.
  • JohnyTex
    JohnyTex about 3 years
    Note that debuggable may be set to true in release as well. Optional but maybe not recommended depending on you application.
  • Miller Go Dev
    Miller Go Dev almost 3 years
    You saved my life! A little update to this answer, on newer versions of Android Studio, you should go to: Android Studio -> Preferences -> Build, Execution, Deployment -> Debugger
  • aB9
    aB9 over 2 years
    Doesn't work on mac though. Will give you an error when you try to debug the app. stackoverflow.com/questions/57770464/…
  • JCarlosR
    JCarlosR about 2 years
    Great! I didn't know I have to set debuggable true explicitly in the build.gradle file.
  • Cedriga
    Cedriga about 1 year
    Best answer. It works for me. Thanks
  • FerDensetsu
    FerDensetsu about 1 year
    Sweet! Thank you
  • abbasalim
    abbasalim 12 months
    wooooow this worked for me, after One week search :x