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

Posted liguangsunls

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了android adb常见问题的解决方法!相关的知识,希望对你有一定的参考价值。

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

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

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

    假设运行adb start-server没有反应(一般是由于5037port被占用)。那么打开Windows的任务管理器,终止adb.exe进程,并又一次运行adb start-server

    假设是未知的进程占用了5037port,则使用下面第1条命令找到进程的PID,然后再终止该进程,最后又一次运行adb start-server
    netstat -ano -> 查询本机的port占用情况,找到5037portlistening的PID;
 tasklist /fi "pid eq ???" -> 依据PID终止某个进程                                  技术分享                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ‘

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 ‘

















以上是关于android adb常见问题的解决方法!的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu使用adb连接android手机失败unknown的解决的方法

解决手机助手与 android sdk 的adb 冲突问题

Android Studio 解决ADB检测不到手机导致无法连接的问题

Android ADB 5037端口被占用问题解决办法:改端口号

Android Studio ADB启动失败解决方法

在点击run之后,没有显示任何设备,这一般是adb的问题,解决方法是重新启动adb