Skip to main content
Fix command to update PATH variable. Version in the comment can completely disable working with shell, as it overwrites PATH, so even commands like open, ls etc don't work, because /usr/bin is no longer in the path.
Source Link

enter image description hereThis is how it worked for me

first I find my platform-tools than I was using zshrc instead of bash_profile so I run this command first

echo 'export PATH=$HOMEPATH=${PATH}:$HOME/Library/Android/sdk/platform-tools/' >> ~/.zshrc 

next refresh terminal

source ~/.zshrc 

Check if it worked

adb devices 

result of this command must be something similar to this if so then it worked.

List of devices attached emulator-5554 device 

enter image description hereThis is how it worked for me

first I find my platform-tools than I was using zshrc instead of bash_profile so I run this command first

echo 'export PATH=$HOME/Library/Android/sdk/platform-tools/' >> ~/.zshrc 

next refresh terminal

source ~/.zshrc 

Check if it worked

adb devices 

result of this command must be something similar to this if so then it worked.

List of devices attached emulator-5554 device 

enter image description hereThis is how it worked for me

first I find my platform-tools than I was using zshrc instead of bash_profile so I run this command first

echo 'export PATH=${PATH}:$HOME/Library/Android/sdk/platform-tools/' >> ~/.zshrc 

next refresh terminal

source ~/.zshrc 

Check if it worked

adb devices 

result of this command must be something similar to this if so then it worked.

List of devices attached emulator-5554 device 
Source Link
Zeeshan Mehdi
  • 1.5k
  • 1
  • 19
  • 18

enter image description hereThis is how it worked for me

first I find my platform-tools than I was using zshrc instead of bash_profile so I run this command first

echo 'export PATH=$HOME/Library/Android/sdk/platform-tools/' >> ~/.zshrc 

next refresh terminal

source ~/.zshrc 

Check if it worked

adb devices 

result of this command must be something similar to this if so then it worked.

List of devices attached emulator-5554 device