Where does homebrew install android-sdk?

前端 未结 6 935
北海茫月
北海茫月 2020-12-29 23:32

Where does homebrew install the android-sdk when you run the command:

brew cask install android-sdk

I want to be able to add it to the PATH

6条回答
  •  余生分开走
    2020-12-30 00:07

    You would be better off using the symlink that Homebrew creates to ANDROID_HOME, as it will always be the newest version:

    /usr/local/opt/android-sdk/

    So your PATH would be:

    export PATH=$PATH:/usr/local/opt/android-sdk/tools:/usr/local/opt/android-sdk/platform-tools

提交回复
热议问题