-->

No debuggable processes in android studio when con

2020-08-09 07:51发布

问题:

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!

回答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.



回答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



回答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



回答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


回答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



回答6:

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



回答7:

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



回答8:

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.



回答9:

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



回答10:

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 ;).



回答11:

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

android:debuggable="true".


回答12:

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



回答13:

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.



回答14:

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