一、安装homebrew命令,使用国内镜像
/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"
安装成功后如下提示,注意要配置环境变量

二、安装adb
brew install android-platform-tools
brew install --cask android-platform-tools

使用命令,查看是否安装成功
adb devices

网友评论