- Add export PATH=/Users/mac/Downloads/platform-tools:$PATH to both ~./bashrc and ~./bash_profile
-
source ~./bash_profile 和 source ~./bashrc
-
Enter adb devices to test whether it works
-
xxx command not found, copy and paste the corresponding environment variables into the ~./bashrc file
You're done!