David Janes' Code Weblog

November 8, 2009

How to install Android SDK on your Mac

android,mobile · David Janes · 5:56 am ·

I was interested in trying the Android emulators yesterday on my Mac, so here’s what I did. It’s much simpler than the documentation makes it out to be:

  • download and unpack the SDK zip file from http://developer.android.com/sdk/index.html
  • add the SDK tools directory to your path (in ~/.bashrc):
    export PATH=${PATH}:${HOME}/…/android-sdk-mac/tools
  • start Terminal
  • run the “Android SDK and AVD Manager”:
    android &

    • select Settings on the left
      • select Force https://… sources to be fetched using http://…
    • select Available Packages on the left
      • select the checkboxes for the various SDK Platforms
      • press Install Selected
  • make an “Android Virtual Device”:
    android create avd --target 6 --name david -c 200M
  • run the emulator (note: it can take minutes to boot):
    emulator -avd david

0 comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress

Switch to our mobile site