Trying to add adb to PATH variable OSX

前端 未结 14 1333
遇见更好的自我
遇见更好的自我 2020-11-28 18:04

I am trying to develop for android and I want to add the adb to my PATH so that I can launch it really easily. I have added directories before by f

14条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-28 18:33

    The answer for MAC should be:

    1. Open your bash_profile with the following commands: open ~/.bash_profile

    2. In case base profile file doesn't exist, create a new one with the following command: touch .bash_profile then repeat phase 1.

    3. Add the following line: export PATH=/Users/"YOURUSER"/Library/Android/sdk/platform-tools:$PATH

    4. Restart your bash window and test by typing adb shell

    Good luck! :-)

提交回复
热议问题