1、安装Android SDK,设置系统环境变量 %ANDRIOD_SDK_HOME%,设置完后检查:
C:\Users\leizm>echo %ANDRIOD_SDK_HOME%
G:\adt-bundle-windows-x86-20131030\sdk\platform-tools
2、安装手机驱动
3、安装adb,很多都是工具自动安装,可以通过命令查看:
C:\Users\leizm>where adb
C:\Android\adb.exe
4、查看设备
C:\Users\leizm>adb devices
List of devices attached
84a82bcc unauthorized
unauthorized 表示未授权调试。
5、输入命令处理
C:\Users\leizm>adb kill-server
C:\Users\leizm>adb start-server
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
C:\Users\leizm>adb devices
List of devices attached
84a82bcc device
时间: 2024-10-13 05:31:06