Where should the Android SDK be installed on Mac OS X?
Android Studio is a comprehensive Android development environment designed to come as a replacement for Eclipse with ADT. It is worth mentioning that Android Studio is currently in beta and, as a result numerous features and tools are not yet implemented and users might encounter various bugs. How to install Android P right now.How to download and install the Android P all the instruction here provided with the screenshots just follow and learn all of them with instruction Some few steps to Install Android P on PC using Android Studio on Windows or Mac OS.
George Stocker♦11 Answers
Now the android-sdk
is migrated from homebrew/core
to caskroom/cask
.
and install android-sdk
using
You will have to add the ANDROID_HOME
to profile (.zshrc or .bashrc)
The easiest (and standard) way to install Android SDK under OS X is to use brew
.
brew install android-sdk
If you do not have homebrew, here's how to get it.
This will install Android SDK into /usr/local/Cellar/android-sdk/
and, at this moment, this is the best location to install it.
My personal preference is to put it in ~/opt/local/android-sdk-mac
or /Developer/android-sdk-mac
the latter being where Xcode and all the Apple Dev tools are held.
When I installed Android Studio 1.0 it ended up in
/Library/Android/sdk/
sudo bangbangBy default the android sdk installer path is ~/Library/Android/sdk/
You can install android-sdk in different ways
homebrew
Install brew using command from brew.shInstall
android-sdk
usingNow
android-sdk
will be installed in/usr/local/opt/android-sdk
If you installed android studio following the website,
android-sdk
will be installed in~/Library/Android/sdk
I think these defaults make sense and its better to stick to it
GrahamFrom http://developer.android.com/sdk/index.html, it seems that you can install the SDK anywhere, so long as you
- 'execute the android tool in the
<sdk>/tools/
folder' - Add the
<sdk>/tools
directory to your system path
More info can be found here: http://developer.android.com/sdk/installing.html
Justin JohnsonJustin JohnsonI just have mine in MyUser/Documents/Development
. I'm the only one that used my Mac, so I didn't need to worry about making it accessible system-wide.
I put mine in /Developer/SDKs I had to authenticate to do that…but since there's no consensus I thought that it sounded like a place I'd remember.
I ended up placing my at ~/sdks/android-sdk-mac_x86. I like to keep all of my SDKs in one place and for me an sdk folder under my home directory makes the most sense.
Carl ManasterI have been toying with this as well. I initially had it in my documents folder, but decided that didn't make 'philosophical' sense. I decided to create an Android directory in my home folder and place Eclipse and the Android SKK in there.
finiteloopfiniteloop