首页 > 其他分享 >mac zsh: command not found: adb 问题解决

mac zsh: command not found: adb 问题解决

时间:2022-09-29 15:33:52浏览次数:50  
标签:profile zshrc adb source mac command found bash

 

问题:mac 终端提示:

zsh: command not found: adb

 

第一步查看 ~/.bash_profile的配置是否配置得了Android SDK

执行命令

open ~/.bash_profile

 

mac  zsh: command not found: adb 问题解决_微信

 

可见存在该配置

第二步

执行 vim ~/.zshrc  添加配置

直接添加:

source ~/.bash_profile 保存

mac  zsh: command not found: adb 问题解决_技术交流_02

 

第三步

执行 

source ~/.zshrc

 

第四步

验证

执行:

adb devices

mac  zsh: command not found: adb 问题解决_微信_03

 

 

 

 

标签:profile,zshrc,adb,source,mac,command,found,bash
From: https://blog.51cto.com/u_7174760/5723018

相关文章