82

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!

Loïc Dumas
  • 1,036
  • 10
  • 18
kimichang
  • 923
  • 1
  • 6
  • 6

23 Answers23

77

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.

Loïc Dumas
  • 1,036
  • 10
  • 18
54

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

Zinc
  • 1,002
  • 12
  • 18
  • this should be the answer. +1 – E J Chathuranga Nov 06 '17 at 06:58
  • 12
    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 – Zinc Apr 05 '18 at 10:06
42

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
koperko
  • 2,447
  • 13
  • 19
40

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

user3138806
  • 525
  • 5
  • 5
  • Worked for me using a Google Pixel 2. Thanks! – DevOpsSauce Jan 10 '19 at 02:07
  • This setting is not where it is specified above. I have 3.1.3 installed and the setting does not exist in that window. – Adam Feb 12 '19 at 16:36
  • 1
    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 – Miller Go Dev Mar 26 '20 at 00:16
  • 1
    Doesn't work on mac though. Will give you an error when you try to debug the app. https://stackoverflow.com/questions/57770464/installation-did-not-succeed-the-application-could-not-be-installed-installati – aB9 Apr 21 '20 at 03:40
  • Sweet! Thank you – FerDensetsu Nov 30 '21 at 22:37
18

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

Khalid Taha
  • 3,183
  • 5
  • 27
  • 43
7
  1. Android Studio -> Preferences -> Build, Exception, Deployment -> Debugger -> check "Use libusb backend" -> Apply -> OK
  2. Android Studio -> Preferences -> Build, Exception, Deployment -> Debugger -> uncheck "Use libusb backend" -> Apply -> OK
  3. oh, it's just work now ... (my android studio version is 4.1)
Michael Mao
  • 433
  • 5
  • 9
6

if you set minifyenabled to true you can be face with this error. So if you run your app release or debug then be sure that minifyenabled is false.

aligur
  • 3,387
  • 3
  • 34
  • 51
6

Open terminal window at botton ba.. type
adb kill-server adb start_server

Marco Aurelio Silva
  • 1,524
  • 1
  • 12
  • 6
5

I finally found that I was running a release version of the App. So foolish...

civic.LiLister
  • 2,087
  • 16
  • 13
4

Maybe you have recently launched Android Device Monitor which might have prompted you to disable ADB integration. Usually, when you exit the Android Device Monitor, ABD integration is automatically re-enabled. But sometimes it isn't, so please check Tools/Android/Enable ADB Integration

Mark
  • 7,446
  • 5
  • 55
  • 75
  • Indeed this was not re-enabled by default for me as well – Louis Feb 21 '18 at 14:10
  • Great tip. I found that I had to use Task Manager to kill process monitor.exe running in the background to restore the normality. – Hong Mar 24 '18 at 17:12
4

1. Open Edit Configurations:

enter image description here

2. Check the boxes:

enter image description here

Dharman
  • 30,962
  • 25
  • 85
  • 135
  • I'm trying to use the App Inspection Tab to check my app's database and I am seeing this "No debuggable process" when selecting my device. How do I go about this? Because this did not work – Daniel Iroka Jul 24 '23 at 15:49
2

You wouldn't believe but this is really simple, took me long to find it out, but u don't need any solution here, actually there is nothing wrong, just:

  1. Right click your MainActivity class, (or whatever you name it)
  2. Click on Run "MainActivity"
  3. Solved!

I think this happens when updating the gradle, at least for me. Hope works for anyone looking around. (Sorry for my english)

1

Click the "Bug" icon and that did the trick.

thatzprem
  • 4,697
  • 1
  • 33
  • 41
0

If all does not work then try checking your manifest file, set:

android:debuggable="true".
Paul Roub
  • 36,322
  • 27
  • 84
  • 93
Rahul Jain
  • 276
  • 2
  • 11
0

Maybe U can reboot your PC/Mac. It works for me.

Scott Wang
  • 489
  • 1
  • 7
  • 9
0

This may be the case, when you change cable with new one, then Restart is required for Android Studio. It will prompt USB debugging again.

Aks4125
  • 4,522
  • 4
  • 32
  • 48
0

Unplugged the test device from USB and plugged it back in, that did it for me. Restarting Android Studio had no effect.

tariq101
  • 127
  • 2
  • 6
0

The following worked for me:

adb kill-server
adb devices // restart in case it doesn't do it by itself
frankelot
  • 13,666
  • 16
  • 54
  • 89
0

In case of a debuggable app that has stopped logging accidentally restarting android studio is the only helpful solution ‍♀️

Mahmoud Aly
  • 578
  • 3
  • 10
0

To Solve this issue.

  1. Restart you Android Studio.
  2. Your Application should be in debug mode.
  3. Device should be connected.
Rakesh Jha
  • 279
  • 2
  • 7
0

My case is not like other's answers.

I just click Remove from sidebar on tab by right click.

Then enable it in View -> Tool window -> Profiler.

Victor Choy
  • 4,006
  • 28
  • 35
-1

You need to download usb drivers for your phone (in this case as I see, it is a samsung s5). The link to its drivers is this one:

http://samsungusbdriver.com/download/samsung-driver-v1-5-61-0

When you are there, follow the steps when downloaded and your phone will be recognised. Hope I could help ;).

DzefersonS
  • 28
  • 8
  • 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. – DzefersonS Dec 08 '16 at 09:12
  • I can transfer file correctly.because of my reputation on this web,i can not upload picture. or you can see the phenomenon. – kimichang Dec 08 '16 at 09:17
  • That is pretty sad. If you could explain what you did overall I could try helping you a bit more. – DzefersonS Dec 08 '16 at 09:22
  • 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! – kimichang Dec 08 '16 at 10:45