Android 3.0 SDK on Mac OS X – Snow Leopard: Installation tips
It’s not as obvious as it seems in the Installing the SDK documentation. You’ll also need to do two (small) extra steps.
Step 1: Make sure your JAVA_HOME path is using the correct value
Edit or create a .bash_profile file in your home directory and add the following line.
export JAVA_HOME=`/usr/libexec/java_home`
This will set the JAVA_HOME environment variable to whichever version of the Mac OS X JDK is available. You can see which version is in use by firing up the Java Preferences application (in /Applications/Utilities)
Step 2: Use ./android instead of android to launch the SDK & AVD Manager
The documentation says On Mac or Linux, open a terminal and navigate to the tools/ directory in the Android SDK, then execute: android
, but on the Mac, you actually have to type ./android.
That may be obvious to some, but for the n00bs among us, not so much
. You can then continue with the installation instructions.