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!
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
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.
This happens time to time, try these three options in any order:
- Restart Android Studio ( preferably with invalidated caches as well )
- Restart your phone
- Deactivate and reactivate usb debugging
In my case, using Android Studio 3.1.3, I had to enable "Use libusb backend" checkbox at File-->Settings-->Build, Execution, Deployment-->Debugger
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
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
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
.
Click the "Bug" icon and that did the trick.
I finally found that I was running a release version of the App. So foolish...
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 ;).
If all does not work then try checking your manifest file, set:
android:debuggable="true".
Maybe U can reboot your PC/Mac. It works for me.
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.
来源:https://stackoverflow.com/questions/41033849/no-debuggable-processes-in-android-studio-when-connected-with-phone-which-runs-a