Mac 安装adb

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

还不行可以重启终端,重新再来一遍试试

posted @ 2020-10-29 15:42  阿乐。  阅读(251)  评论(0编辑  收藏  举报