How to install Eclipse and ADT on Mac OS X

In this post i want to give some details on how to install Android Development environment on Mac Mountain Lion.

So let’s start from the beginning, we need:

Download and Install JDK

Download and Install Eclipse

Download and Install Android SDK

Download and Install Eclipse Android plugin

Configure Eclipse to use JDK and Android SDK

Download and install JDK

The first step is install JDK if you don’t have it already on your Mac. Open your browser and go to Apple Developer and sign in using your developer account. Once you are logged in you have a list of tools to download. In my case i selected Java for OS X 2012-05, you can select one that fits to your needs.

When the download is completed, click on the file and you should get something like this:

Now click the icon and the installation process starts. Accept the licence and at the end you will get:

This is in italian language but it means the installation process is completed. To check if java is installed correctly open the terminal application and write:

Now you have your JDK installed and working on your Mac.

Download and install Eclipse

To install Eclipse simply go to Eclipe web site and click on Download and then on Eclipse IDE for Java Developers and select the version 32bit or 64bit. The installation process is very simple, you have just to unzip the file you downloaded and drag it in the Application folder.

Download and install Android SDK

This is also a very simple operation just go to Android web site and click on download SDK. Unzip it and you have:

I suggest you to move the android folder in another position. You can create a folder in the root folder called Android and the move the sdk there.

Download and install Android Eclipse plugin

The last step is install Android plugin for eclipse so we have an integrated development environment. Start eclipse from the Application folder and go to Help –> Install new software:

In the name add everything you like while in the location you should add

Now click on OK and go on and download the SDK. At the process end you must restart eclipse

Configure Eclipse to use JDK and Android SDK

You have almost done everything, the last step is tell to Eclipse where to find new components. In Eclipse go to Preferences –> Android and tell where to find the SDK you have installed before.

As soon as you confirm, Eclipse warns you that you didn’t have any Android platform installed and shows you the available platforms you can download. Select the platforms you want to develop to and wait the download.

When finished you’ve done!

If you have installed Yosemite and you want to make HAXM working on your new OS version give a look here.

About The Author

I'm an electronic engineer with over 15 years of
experience in computer programming. I'm the author of the book "Android things projects". I'm a MVB at DZone and DZone Guide Author. I have contributed to the IoT guide. I'm the technical reviewer of the book Internet of Things with Arduino Blueprints(published by PacktPub). I love creating IoT projects using Arduino, Raspberry Pi,
Android, and other platforms. I am interested in the convergence
between IoT and the mobile applications. I'm SCEA, SCWCD, and SCJP
certified.
Follow on: Twitter | Linkedin

Sign up for our Newsletter

Enter your email and stay on top of things,

Get SwA updates delivered to your inbox. Article, tips, source code

×

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.