当前位置: 代码迷 >> 综合 >> 【Macbook】android自动化工具—solopi工具环境配置
  详细解决方案

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

热度:77   发布时间:2023-12-01 01:44:55.0

一、下载安装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	devicexujiadeMacBook-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
?  ~
  相关解决方案