前两天写了web 的UI自动化,最近想研究下APP的
所以安装了android sdk, 想使用adb命令调试,就得先安装sdk platform tools
去官网下载,实在太慢,我没vpn,换个方法,打开terminal,先下载homebrew包管理器(后面使用命令下载软件比较方便)
输入:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
然后可能会提示你:Press RETURN to continue or any other key to abort 点击回车就行 ,然后一直等到installation successful才行,时间可能有点久,耐心点
接着在终端输入命令:brew 回车后看到一连串的提示着代表软件安装成功了,如果提示cmmand not found则说明没有安装成功,需要重复步骤。
然后输入:brew cask install android-platform-tools 去下载android-platform-tools
安装好啦,可以使用adb连机调试了