Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 877
hopper Avatar asked Oct 06 '14 01:10

hopper


People also ask

Where does Android SDK get installed on Mac?

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/”.

How do I find where the sdk is installed?

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.

Where can I find the Android SDK?

On a machine with Android Studio installed, click Tools > Android > SDK Manager. At the top of the window, note the Android SDK Location.


2 Answers

use 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'

notes

Prior to March 2017 you could run brew info android-sdk

like image 111
lfender6445 Avatar answered Oct 21 '22 20:10

lfender6445


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.

like image 18
Rodrigo Ayala Avatar answered Oct 21 '22 18:10

Rodrigo Ayala