Android SDK Setup - Mac OS X

Notes

Please note most of the images from this section are borrowed from the windows version of the tutorial. The only major difference in them is the style of title bar. It is only in the cases where the Mac versions of the aplications have a different program flow than the Windows versions that their images will be supplied, so please do not be alarmed if your screens look slightly different.

Prerequisites

See http://developer.android.com/sdk/requirements.html for detailed information.

  1. Install Java (Obtained via Apple's software updater)

  2. Install Eclipse IDE (Galileo) for Java Developers from http://www.eclipse.org/downloads/

Installation of SDK

  1. Download and Extract the Android SDK from http://bit.ly/android_mac
    (In this example, I extract the SDK to “~/android-sdk-mac_86” ("/Users/alexbauer/android-sdk-mac_86") Please substitute this to wherever you have extracted your SDK)

    Note: You can download and install the packages from Google, but the SDK downloader tool is a little buggy and can cause a few issues, as a result, all packages are prepackaged here. You must still accept their licenses to be used.

Setting up an Android Virtual Device (AVD)

  1. Open a Terminal and Navigate to the Tools Folder in the Android SDK Directory (I had placed this in ~/android-sdk-mac_86)
    mac1.jpg

  2. Enter the Command “./android” to Start the AVD manager
    mac2.jpg
  3. Go to Virtual Devices and Click “New”
    pic2.jpg
  4. Specify the Name of the Device, the version of Android it will emulate and then click “Create AVD”
    pic3.jpg

    pic4.jpg
  5. Once you are back in the main window highlight the AVD you created and click “Start...” to test your AVD
    pic5.jpg
  6. Then click "Launch"
    pic6.jpg
  7. Congratulations! You are now emulating an Android phone.
    pic7.jpg
  8. You may now exit the emulator and the SDK Setup.

Setting up Eclipse

  1. Select your workspace.

  2. Select Help, Then click on Install new software.
    mac3.jpg

  3. Click Add
    pic9.JPG

  4. In the name field, Type “Android Plugin”, in the location field, type
    “https://dl-ssl.google.com/android/eclipse/”
    pic10.JPG

  5. Eclipse will then show a pending status as it downloads package information.

  6. Select the check box next to Developer Tools and click next.
    pic11.jpg

  7. Click Next
    mac5.jpg

  8. Accept the Licenses and click finish
    mac6.jpg

  9. Eclipse will download and install the packages.
    pic13.JPG

  10. The ADT Plugin is unsigned, if you receive this message, click OK to continue.
    pic14.JPG

  11. Allow Eclipse to Restart
    pic15.JPG

  12. Select Eclipse next to the APPLE, then click on Preferences
    mac4.jpg

  13. Select Android on the left hand side of the tree, on the right, click on browse to find the folder where we extracted the SDK earlier, in this case, “ /Users/alexbauer/android-sdk-mac86”, then click on OK.
    mac7.jpg

Note: In order to use the SDK you must agree to the Licenses that it comes with, each component has several licenses that need to be accepted to be used and you may be presented with them throughout various stages of the installation. Also, the list of Targets will not appear until after you click OK or apply for the first time.



Topic attachments
I Attachment Action Size Date Who Comment
JPEGjpg mac1.jpg manage 14.3 K 2010-02-18 - 23:17 UnknownUser  
JPEGjpg mac2.jpg manage 8.4 K 2010-02-18 - 23:17 UnknownUser  
JPEGjpg mac3.jpg manage 72.6 K 2010-02-18 - 23:54 UnknownUser  
JPEGjpg mac4.jpg manage 65.0 K 2010-02-18 - 23:53 UnknownUser  
JPEGjpg mac5.jpg manage 29.7 K 2010-02-19 - 00:01 UnknownUser  
JPEGjpg mac6.jpg manage 80.8 K 2010-02-19 - 00:01 UnknownUser  
JPEGjpg mac7.jpg manage 50.7 K 2010-02-19 - 00:12 UnknownUser  
Topic revision: r3 - 2010-03-30 - 13:19:09 - Main.llyons
 
Copyright 2016 The Board of Trustees
of the University of Illinois.webmaster@cs.uic.edu
WISEST
Helping Women Faculty Advance
Funded by NSF