androidmacoshomebrew

Where does homebrew install android-sdk?


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.


Solution

  • The installation folder of android-sdk is:

    /usr/local/Cellar/android-sdk/<VERSION>
    

    Therefore, if you want to add it to PATH, you need to add the following line to ~/.bashrc

    export PATH=$PATH:/usr/local/Cellar/android-sdk/<VERSION>/tools:/usr/local/Cellar/android-sdk/<VERSION>/platform-tools
    

    Don't forget to replace <VERSION> with an installed version, just take a look inside of android-sdk folder to see what version you have installed.