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.
The location of the folder is located in the text box near the top that says “Android SDK Location”. By default the Android SDK location is stored at “/Users/[USER]/Library/Android/sdk” or at “/Library/Android/sdk/”.
All of the packages are downloaded into your Android SDK directory, which you can locate as follows: In Android Studio, click File > Project Structure. Select SDK Location in the left pane. The path is shown under Android SDK location.
On a machine with Android Studio installed, click Tools > Android > SDK Manager. At the top of the window, note the Android SDK Location.
brew cask info android-sdk
after installing, you can get some basic information about what needs to be set and where:
› brew cask info android-sdk
...etc
/usr/local/Caskroom/android-sdk/3859397,26.0.1/build-tools/26.0.1/aapt (binary)
/usr/local/Caskroom/android-sdk/3859397,26.0.1/tools/bin/avdmanager
...etc
==> Caveats
We will install android-sdk-tools, platform-tools, and build-tools for
you. You can control android sdk packages via the sdkmanager command.
You may want to add to your profile:
'export ANDROID_SDK_ROOT=/usr/local/share/android-sdk'
Prior to March 2017 you could run brew info android-sdk
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With