Trying to add adb to PATH variable OSX

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

    I use zsh and Android Studio. I use a variable for my Android SDK path and configure in the file ~/.zshrc:

    export ANDROID_HOME=/Applications/Android\ Studio.app/sdk
    export PATH="$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH"
    

    Note: Make sure not to include single or double quotes around the specified path. If you do, it won't work.

提交回复
热议问题