Android-adb安装

(1)先检查你的adb

adb devices

(2)安装Homebrew(有就跳过此步)

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

(3)安装adb

brew install android-platform-tools

(4)检查当前连接的设备

adb devices

(5)生效指令

source ~/.zshrc

(6)重启终端和AndroidStudio

截屏2021-07-30 上午8.32.53.png

截屏2021-07-30 上午8.33.03.png

截屏2021-07-30 上午8.39.11.png

你可能感兴趣的:(Android-adb安装)