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条回答
太酷不给撩
2楼-- · 2020-08-09 07:57

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.

查看更多
爷、活的狠高调
3楼-- · 2020-08-09 08:02

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.

查看更多
我想做一个坏孩纸
4楼-- · 2020-08-09 08:04

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

查看更多
在下西门庆
5楼-- · 2020-08-09 08:07

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

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

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.

查看更多
来,给爷笑一个
7楼-- · 2020-08-09 08:10

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
查看更多
登录 后发表回答