Installing the Android SDK on Mavericks

July 17, 2014, 10:10 pm
Author: James Griffiths

Here's a brief outline of the different tools that you'll need to ensure are finally installed on your system:

First things first, check to see if Java is installed on your Mac by typing the following in a Terminal session:

 java -version 

All things being well you should see the version number being returned. If not, download and install the JDK for Mac OS X before proceeding with the rest of the tutorial.


Ant is a server side component for automating build processes which is required by the Android SDK in order to function. So logically the next step involves checking to see that you have Ant installed on your Mac. Once again, return to the Terminal and type out the following:

 ant -v 

If you see a version number being returned then all is good. If you don't, or an error should be thrown, then follow this article to install Ant on your system.

Android SDK

After the previous steps have been satisfied go and download the current version of the Android SDK and install that to a directory on your Mac (this could be within your Documents folder or, if you prefer development related tools and technologies to be located near to your projects, it might make more sense to install this to your Sites folder.)

The next step will then be to ensure the Android Tools is available to your system path so you can execute commands more easily. Open up your Terminal and edit your bash profile with the editor of your choice (I.e. vi, emacs, nano etc) and add the system path as follows being sure to change your-username to your own and also the location to the exact one where your Android SDK is installed):

 export PATH={$PATH}:/Users/your-username/Android/android-sdk/sdk/platform-tools/:/Users/your-username/Android/android-sdk/sdk/tools/ 

Now load the new path setting by running the following in the Terminal:

 source ~/.bash_profile 

At this stage all the 'fiddly' stuff is completed - all relevant software has been installed and configured so now it's time to launch the Android SDK.

From the Terminal execute the following command:

 android sdk 

Now the Android SDK Manager will load and you can start running through the process of downloading, installing and updating the relevant packages for your Android development needs.


« Return to Posts

Post a comment

All comments are welcome and the rules are simple - be nice and do NOT engage in trolling, spamming, abusiveness or illegal behaviour. If you fail to observe these rules you will be permanently banned from being able to comment.