android studio 不能debug

参考博客地址: http://blog.csdn.net/zhqshx/article/details/39339903

android studio 不能单点debug 报错信息: Connected to the target VM, address:'localhost:8600', transport: 'socket'

1.查看了stackoverflow以下博客 还是不能解决问题 

http://stackoverflow.com/questions/18907539/a-proper-way-to-debug-a-service-in-android-studio

(该链接为正解:由于一个app中注册了多个进程,所以必须选中其中一个进程进行调试)

http://stackoverflow.com/questions/21745143/android-studio-cant-connect-to-debug-devices

2.初步判断是端口占用问题

Linux下面查看端口参考了这篇博客:http://blog.csdn.net/spring19840513/article/details/6440241

查看到端口被程序占用:zuozheng@zuozheng:~$lsof -i:8600
COMMAND  PID     USER   FD   TYPEDEVICE SIZE/OFF NODE NAME
java    9512 zuozheng  484u  IPv4212534      0t0  TCP localhost:8600 (LISTEN)

杀死对应程序:sudo kill9512


你可能感兴趣的:(android,Android开发,android应用,Studio)