【Macbook】android自动化工具—solopi工具环境配置

一、下载安装android studio & sdk

我的另外一篇文章:Mac下安装Android studio、sdk以及配置其环境变量详细步骤 https://blog.csdn.net/qq_37941471/article/details/101446940

二、手机上下载安装最新的solopi包

https://github.com/alipay/SoloPi/releases

三、solopi的初始配置

https://github.com/alipay/SoloPi/wiki/FirstUse

四、输入命令连接solopi

电脑与手机直连,终端输入以下命令:

1. adb devices
2. adb tcpip 5555

如果是以下的展示就表示连接成功:

xujiadeMacBook-Pro:~ xujia$ adb devices
List of devices attached
6HJDU19627002412	device

xujiadeMacBook-Pro:~ xujia$ adb tcpip 5555
restarting in TCP mode port: 5555

五、常见问题

  1. 已经连接成功,第二次使用时, 输入abd tcpip 5555,出现:
➜  ~ adb tcpip 5555
zsh: command not found: adb

解决方法:

➜  ~ source  ~/.bash_profile
➜  ~ adb tcpip 5555
* daemon not running; starting now at tcp:5037
* daemon started successfully
restarting in TCP mode port: 5555
➜  ~
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章