No debuggable processes in android studio when connected with phone which runs android 6.0

大城市里の小女人 提交于 2019-12-22 01:46:05

问题


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:


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




回答2:


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.




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


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.




回答8:


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




回答9:


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




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



来源:https://stackoverflow.com/questions/41033849/no-debuggable-processes-in-android-studio-when-connected-with-phone-which-runs-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!