Mac 下配置 ADB
详细介绍 Mac 下配置 ADB
zzzzz = your sdk path/platform-tools
终端输入:
touch .bash_profile
open -e .bash_profile
弹出文本
输入
export PATH=${PATH}:zzzzz
保存退出,回到终端
输入
source .bash_profile
end;
Test is Success
终端输入 adb 没有出现 命令没找到 即可
另:
使用 iTerm2 并集成有 zsh 的童鞋, 如若发现每次退出 iTerm2 都需要执行 source .bash_profile 的话执行 vi ~/.zshrc , 将 source .bash_profile 粘贴到最下面,保存即可。
restart iTerm2,进入执行adb,ok。