Trying to add adb to PATH variable OSX

前端 未结 14 1396
遇见更好的自我
遇见更好的自我 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:38

    In order to make the terminal always have the file ~/.bashrc and there put the path you wish to use, by adding:

    export PATH=$PATH:/XXX
    

    where XXX is the path that you wish to use.

    for adb, here's what i use:

    export PATH=$PATH:/home/user/Android/android-sdk-linux_x86/platform-tools/
    

    (where "user" is my user name).

提交回复
热议问题