android studio 不识别进程
1、系统使用debug版系统,如果不是,至少能执行adb shell
C:\Users\host-name\Desktop>adb shell
XX_Phone:/ # getprop ro.debuggable
getprop ro.debuggable
1
setprop ro.debuggable 1
adb shell stop
adb shell start
2. apk采用debug版
https://blog.csdn.net/baidu_26352053/article/details/53182913 Android Studio 的 Android Monitor / DDMS 中不显示应用的进程(看不到 log)
点开 Build Variants,选择 debug 渠道,再运行就好了:
3.单独打开monitor.bat看是否能连上
https://www.jianshu.com/p/b15983ae859f Invaliadate Cache是无效缓存的意思,这个操作应该就是清除无用缓存
Monitor找不到程序的问题:No Debuggable Processes
4.
这个时候手机连接上了,但是依然看不到咱们运行的程序,我们先看看Studio是不是已经开启了 允许adb集成,在菜单栏上有个“Tools”->“Android”->“Enable ADB Integration”这个前面要有个对勾才行,没有的点击就可以选上了。
看看这个时候能不能连接上运行的程序,如果不行就先把各大手机助手先关掉,然后在重复上面的操作:“adb kill-server” ->“adb start-server” ,以上的方法可以解决