No debuggable processes in android studio when con

2020-08-09 07:38发布

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!

14条回答
Summer. ? 凉城
2楼-- · 2020-08-09 07:50

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

查看更多
Bombasti
3楼-- · 2020-08-09 07:51

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

查看更多
Evening l夕情丶
4楼-- · 2020-08-09 07:51

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

android:debuggable="true".
查看更多
祖国的老花朵
5楼-- · 2020-08-09 07:56

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

查看更多
▲ chillily
6楼-- · 2020-08-09 07:57

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

查看更多
该账号已被封号
7楼-- · 2020-08-09 07:57

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

查看更多
登录 后发表回答