Android通过Wifi来调试应用

来源:互联网 发布:q版人物绘画软件 编辑:程序博客网 时间:2024/06/08 13:38
1.确保手机和电脑连接在同一wifi局域网内,并确保电脑配置了adb环境变量


2.使用USB数据线连接手机与电脑


3.设置手机监听TCP/IP端口,如

$ adb tcpip 5555

4.拔掉连接手机与电脑的USB数据线


5.查看手机IP(在手机设置中查看具体连接的wifi的IP),如:192.168.1.2


6.电脑终端中输入:

$ adb connect 192.168.1.2
7.确保连接上指定的IP(手机),如果成功,将如下显示:

$ adb devicesList of devices attached192.168.1.2:5555 device

ref:https://developer.android.com/studio/command-line/adb.html#wireless






0 0
原创粉丝点击