android adb常见问题的解决方法!

** adb的常见问题
    adb:android debug bridge,用于连接模拟器/手机与PC端软件(例如:eclipse或者xx手机助手)

    adb devices -> 检查连接到的模拟器/手机

    adb kill-server -> 停止adb
    adb start-server -> 启动adb

    如果执行adb start-server没有反应(通常是因为5037端口被占用),那么打开Windows的任务管理器,终止adb.exe进程,并重新执行adb start-server

    如果是未知的进程占用了5037端口,则使用以下第1条命令找到进程的PID,然后再终止该进程,最后重新执行adb start-server
    netstat -ano -> 查询本机的端口占用情况,找到5037端口listening的PID;
 tasklist /fi "pid eq ???" -> 根据PID终止某个进程                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ‘

** adb的常见问题
    adb:android debug bridge,用于连接模拟器/手机与PC端软件(例如:eclipse或者xx手机助手)

    adb devices -> 检查连接到的模拟器/手机

    adb kill-server -> 停止adb
    adb start-server -> 启动adb

    如果执行adb start-server没有反应(通常是因为5037端口被占用),那么打开Windows的任务管理器,终止adb.exe进程,并重新执行adb start-server

    如果是未知的进程占用了5037端口,则使用以下第1条命令找到进程的PID,然后再终止该进程,最后重新执行adb start-server
    netstat -ano -> 查询本机的端口占用情况,找到5037端口listening的PID
    tasklist /fi "pid eq ???" -> 根据PID终止某个进程                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ‘

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。