参考 https://blog.csdn.net/auccy/article/details/54620454
1、安装homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2、安装adb
brew cask install android-platform-tools ----------------执行后一直报错
解决办法
zsh: command not found: localhost:~
jiazijiedeMacBook-Pro% ~ sant$ sudo chown -R apple:staff * ---------执行命令1
zsh: permission denied: /Users/jiazijie/Desktop
jiazijiedeMacBook-Pro% ~ sant$ brew doctor ----------执行命令2
zsh: permission denied: /Users/jiazijie/Desktop
jiazijiedeMacBook-Pro% brew cask install android-platform-tools
Updating Homebrew...
==> Auto-updated Homebrew!
3、运行adb
adb devices
作者:麦穗儿爸爸
链接:https://www.jianshu.com/p/69ba21b2996c
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。