Home and Blog button

Pages

Introduction

Welcome To my Blog !!
This is a blog where you can get some knowledge that i have learned and been using. Sharing is gaining pals. So Happy Sharing and don't forget to follow and link my blog with yours! Thanks.
Happy Programming!!

Friday, September 2, 2011

Setup Android Development Environment in Mac !!

Hi friends, when I did a quick search on above topic, I found answer on blogs, but they were not organized or were not easier to understand and start. So, here is a quick and short installation guide for setting up Android development environment using Eclipse. Eclipse is best IDE for Android development so, I suggest using eclipse and get started rather than wandering if there are other dev environments to choose.

Step 1: Android SDK setup

Android SDK is the package which contains all the libraries and API's needed for developing android applications.

  1. In this step simply download the Android SDK from this site for Mac OS X.
  2. After downloading SDK, unzip it. It is good to go through a Readme.txt file of that folder.
  3. Open the terminal and execute the command "tools/android".
  4. You will see an "Android SDK and AVD Manager".
  5. Browse through Available Package, select only needed version of SDK such as 2.2 or above and some samples and documentation and then Click on Install selected Item. 
  6. Accept and Click install. Then program will download selected item and install. 
NOTE: You don't need to install all packages to start android programming. Be selective, only install those which you might need. Later on you can download and install other packages too. 


Step 2: Installing Eclipse

In this step download Latest Eclipse from here for your Mac OS X. I have used the Eclipse - Indigo Version which also works great. I suggest eclipse version 3.6 or above.

Step 3: Install Android ADT Plugin in Eclipse.

Eclipse is based on a plug-in architecture that is used to extend its capabilities by third-party plug-ins. The ADT plug-in marries the tools found in the Android SDK with the powers of Eclipse. 

Installing plug-ins for Eclipse can be done either manually, by dropping the contents of a plug-in ZIP file into the plug-ins folder of Eclipse, or via the Eclipse plug-in manager integrated with Eclipse. Here we’ll choose the second route.

1. To install a new plug-in, go to Help > Install New Software..., which will open the installation dialog. In this dialog you can choose from which source to install what plug-in. First, you have to add the plug-in repository from which the ADT plug-in is fetched. 

2. In the first text field, you can enter the name of the repository something like “ADT repository” will do. The second text field specifies the URL of the repository. For the ADT plug-in, this field should be https://dl-ssl.google.com/android/eclipse/. Note that this URL might be different for newer versions, so check the ADT plug-in site for an up-to-date link.

3. After you’ve confirmed the dialog, you’ll be brought back to the installation dialog, which should now be fetching the list of available plug-ins in the repository. Check the Developer Tools check box and click the Next button.

4. Eclipse will now calculate all the necessary dependencies, and then present you a new dialog that lists all the plug-ins and dependencies that are going to be installed. Confirm that dialog with a click on the Next button.

5. Yet another dialog will pop up, prompting you to accept the licenses of each plug-in to be installed. You should of course accept those licenses, and finally initiate the installation with a click on the Finish button.

6. Finally, Eclipse will ask you whether it should restart to apply the changes. You can opt for a full restart or for applying the changes without a restart. To play it safe, choose Restart Now, which will restart Eclipse as expected.

Step 4: Setting Android SDK Path to Eclipse

As one last step in finishing the installation of the ADT plug-in, you have to tell the plugin where the Android SDK is located.

1. Open Window > Preferences, and select Android in the tree view in the upcoming dialog.
2. On the right side, click the Browse button to chose the root directory of your Android SDK installation.

3. Click the OK button to close the dialog, and you’ll finally able to create your first Android application.

Now you can go to Eclipse and Use Android SDK and AVD Manager to add / remove SDK, create Virtual Emulators etc.

Conclusion:

I hope this quick and short steps will help you through installation of Android Development Environment in No Time. Thanks and Happy Sharing.

42 comments:

  1. great article for android developers

    ReplyDelete
  2. very good article for starters

    ReplyDelete
  3. This demonstrate to Setup Android Development Environment in Windows

    http://greenlearnpath.blogspot.com/
    OR
    http://www.androidlanka.tk/

    ReplyDelete
  4. It's Really helpful information for android development.

    Android development is one of the best mobile software platforms for mobile app development.

    ReplyDelete
  5. Can someone help me regarding how I should deploy my app on actual android device.

    ReplyDelete
  6. @anonymous: Didy you created yourapp.apk file after building your project? or are you saying how to debug your project in android device?

    ReplyDelete
  7. I am glad to hear that it helped someone.

    ReplyDelete
  8. I think it's very much similar to the Android SDK setup in windows. But still I would like to thanks for this post. It will really please the Mac users.


    Android Application Development

    ReplyDelete
  9. Thanks, man. Very helpful.

    ReplyDelete
  10. Good article. I am planning to buy and mac and this solved my problem.

    ReplyDelete
    Replies
    1. That would be great, however if you are buying mac, you can also learn iOS development. All the best!

      Delete
  11. Very Helpful! Took less than 20 min to download and set everything up!

    ReplyDelete
  12. Great information on Android Development and thanks for sharing this, Keep posting......

    ReplyDelete
  13. This comment has been removed by the author.

    ReplyDelete
  14. This blog is genuinely impressive in all aspects.good

    ReplyDelete
  15. Hi you are tutorials are really excellent, I bookmark this Blog. Android Development

    ReplyDelete
  16. For centuries people have tried to predict earthquakes-with no success. Magnetic signals from rocks deep inside the earth are the latest prospect.

    I have setup some websites for You. Let's visit and relax with us:
    I have setup some websites for You. Let's visit and relax with us:
    predict science
    prdictions
    who is edgar casey
    cayce edga
    are edgar cayce
    what is the environment
    environment topics
    environment
    seminar topics
    water pollution
    topics on the environment
    topics for environment

    ReplyDelete
  17. Great work.That’s really great post for me as well as all android users.


    iphone developers

    ReplyDelete
  18. It is just mind blowing article for the android developers.

    Android Development

    ReplyDelete
  19. This is interesting analysis about Android App Development Company.I really like it.
    Android App Development Company

    ReplyDelete
  20. Please check it:Most easy way to set up android environment for windows

    http://computerexclusive.blogspot.com/2013/11/android-development-environment-setup_17.html

    ReplyDelete
  21. Much thanks to you such a great amount of for such an extraordinary exercise on including thing in the List view , yet i dint get the complete code for adding another component to the agenda , when i press send from my application, in the wake of composing something.
    Develop Android Apps // Mobile
    Application Development
    // Android Application Development

    ReplyDelete
  22. Thanks for the provide good information. OnGgraph technologies is the best Android application development company in India. We are providing android app's development services.

    ReplyDelete
  23. Android is the framework developed by Google and Open Handset Alliance. Android is software platform as well as Operating System.

    Android Application Development

    ReplyDelete
  24. I really thankful to you for this great read!! You did a very great job, keep it up Hire Android Developers

    ReplyDelete
  25. In all mobile operating systems, Android OS is highly successful and useable as compare to others. Now in market, every second mobile have android OS. On other side android application development have big share in market.

    ReplyDelete
  26. Thanks to sharing your articals. It's Really helpful information for android development. I will be waiting for your further information. Click Here More info.

    ReplyDelete
  27. Wow finally i got good article about android development process from beginning.Thanks for sharing...

    TipEnter Technologies is a leading Android app development company in India.

    ReplyDelete
  28. Do you know which the top smartphone platform in the US is? It is undoubtedly Android. Android has achieved the trust of more than 52% of total Smartphone users in the U.S. Android Apps Development Company California

    ReplyDelete
  29. wolframalpha apk, rummikub free, wolfram alpha apk, highway rider online, wolfram alpha android apk allhax.net

    ReplyDelete
  30. This article is very much helpful and i hope this will be an useful information for the needed one. Keep on updating these kinds of informative things...
    Android App Development Company

    ReplyDelete
  31. Nice Blog!
    Facing error while using QuickBooks get instant solution with our QuickBooks experts.Dial +1-855-533-6333 QuickBooks Enterprise Support Phone Number Alabama

    ReplyDelete

Search This Blog