Home » Mobile » Android » Story Details
Printable Version

Setting up the Development Environment for Android App Development on MAC OS X

by Kamal Rawat on Jun 28, 2011

For Android development you need to have a hands-on experience in Java development, because Android SDK is only available in java.
Comments: 1    Views: 1560
Disclaimer: I am new to MAC OS X. I have recently got a MacBook Pro with MAC OS X 10.6.4. So whatever write will be specific to my environment. But I will try to give enough pointers wherever needed.   

For Android development you need to have a hands-on experience in Java development, because Android SDK is only available in java. The Monodoid which is an SDK to build Android App in .net is actually a wrapper on the top of Java SDK and has a mapping of SDK APIs in .net.    Downloading the software:
  1. Getting jdk 

    If you are working on MAC OS X then you probably don't need this because the MAC OS X comes with jdk. So you can skip this step. 

    If your OS does not have jdk then feel free to download it from the Sun (Now Oracle) website. Also add it to the PATH settings. 

    Make sure that your Jdk is set by creating and executing a sample Java program.
     
  2. Downloading the Android SDK

    Go to http://developer.android.com/ and download the latest version of Android SDK. The SDK is a package that include the libraries, sample code, Documentations and the Emulator which is actually a simulator of an Android Phone to test your applications without having an Actual phone.

    Download the SDK and install it to a folder. Say you have downloaded it in /android Folder.
     
  3. Installing Android 

    Go to the folder where you have installed the SDK in previous step and go to the tools folder inside it “/android/tools”. You will find a fewer files and folders in it than shown below (because I have already installed it). 

    Android1.jpg

    Double-Click on the file named android inside the tools folder and it will open the “Android SDK and AVD Manager”. 

    Android2.jpg

    Select the “Available Packages” Tab and check both the options and click on Install Selected. It will have lot of options, for the first time I will recommend to install all the packages. 

    The download and installation of all these packages will begin. Click on the Next buttons as they ask you. You need to be patient because installation of all the packages may take 20-30 minutes. In case your window is hang just cancel it and start all over again.

    Once all the packages are installed, they will be shown under the “Installed packages” heading.

    Android3.jpg

    Now your Android SDK is installed.
     
  4. Downloading Eclipse

    Go to http://www.eclipse.org/downloads/ and or search for “Download Eclipse” in Google and go to the first link that pops up. There will be lot of options to download from. 

    Don't download the Eclipse 3.6 version because it apparently has some issues with the Android SDK. I have downloaded the 3.5.2 version. 

    Go to the “Older Versions”

    Android4.jpg

    Click Galileo SR2 Packages (v 3.5.2) on the screen which comes and you will reach the download screen of Eclipse. Select the Eclipse IDE for Java Developers

    Android5.jpg
     
  5. Installing Eclipse 

    Install the Eclipse on your MAC Machine (probably in the Applications folder). Open Eclipse and create a sample java “Hello World” rogram to see that your jdk/Eclipse are working fine.
     
  6. Installing ADT Plugin for Eclipse

    Android Development Tools (ADT) is an Eclipse plugin that allows building of Android Application from within the Eclipse IDE. 
     
    • Launch Eclipse.
    • Goto Help > Install New Software: It will open the “Available Software” window. 

    Android6.jpg
       
    Type https://dl-ssl.google.com/android/eclipse in the text box and click add. Check the Check-box which comes in the central area and then follow the instructions to install it.

    Note: There can be several reasons why you may get error in this step. You may be behind a proxy and your Proxy settings of Eclipse are not set, or you may not be able to download the plugin. A very nice trouble-shooting document is available at the below link

    http://developer.android.com/sdk/eclipse-adt.html#troubleshooting

    I was not able to install it anyway. So I have to manually download it from the net and then install it from the preference window.
     
  7. Telling Eclipse where Android SDK is 

    Remember we installed the Android SDK in kfirst step. Now we need to tell that path to eclipse.
     
    • Launch Eclipse
    • Go to Eclipse > Preferences and select the Android Tab. Type the path of Android SDK in the text box (or browse to the folder) 
       
    Android7.jpg
Now you are ready to build your first Android Project on MAC. I will write another article for “Hello World” program in Android Development. 
Post a Comment
*
Good start.
DevExpress PowerBuilder Web Development Windows Development Languages Software Engineering Databases
iPhone Architecture Secutiry UML & Modeling Operating Systems Networking Testing
Graphics Design Project Management Hardware Open Source Games Development Business Intelligence Visual Studio LightSwitch 2011
MonoDevelop Visual Studio 2010 ASP.NET HTML, DHTML XML PHP JavaScript
Silverlight Web Services WCF Windows Forms WPF Windows Services Dynamic Link Libraries
ActiveX COM, DCOM, ATL C# VB.NET C++ F# Java
Pascal SQL Server Oracle DB2 MS-Access Windows Servers Windows
Linux Unix SAP LINQ .NET Framework ADO.NET Reporting
Crystal Reports SQL Server Reporting Services Igenda Reports Active Reports Adobe Fireworks Arrays & Collections Hosting
Future Trends Android Windows Phone Smart Devices Business M&A Investment & Funding
Web Browsers Internet Explorer Firefox Safari Common Entrepreneurs Students
Consulting Wiki Gadgets MobileMe iCloud iOS Social Media
Facebook Twitter LinkedIn Google+ Microsoft Kinect XBox
Wii Playstation DirectX i OS OS X CIO, CTO, CEO Windows 8
Web Design Expression Blend 4 Photoshop CS5 Creative Suite 5.5 Expression Web 4 Expression Studio 4 Creative Suite® 5.5 Design
Creative Suite 5.5 Web Creative Suite 5.5 Production Startups Funding M&A Laptops Smart Phones
Desktops Cameras & Camcorders Netbooks Tablets Virtualization Microsoft Surface WordPress
Software Products Cloud Computing Current Affairs Technology TV TV
Earnings XAML E-Commerce MonoTouch Mono for Android Deals Electronics
Mobile Phone Laptop Tablet Book Computer Press Releases Reviews
Products Books Companies Windows Azure SQL Azure Interviews Mac
Web Browsers Symbian Windows Forms WPF Windows Services HTML 5 Office 365
SharePoint 2010 Exchange Server Adobe Visual Studio 2012 iPad Flex / Flash Games
Windows 9
X
 Login
Please login to submit a new post, reply and edit exiting posts, see user profiles, and access more features. If you are not a registered member, Register here.
User Id / Email:
Password:  
Forgot Password | Forgot UserName