This document describes the procedure to set up your computer for Android development.
Android Studio is the cutting-edge Integrated Development Environment for Android apps. Previously, the IDE was based on Eclipse; now it is based on IntelliJ. Although still in active development, I believe Studio is stable and useful enough to be a good choice.
Go here to download the zip file for your platform: http://tools.android.com/download/studio/canary/latest – at the time I’m writing this, the latest is 0.4.3.
When you unzip the Mac version, it will produce an Application file. Double-click it to open. It probably will say you need Java SE 6. Go ahead and let it Install that.
Start at http://developer.android.com/sdk/ but skip the “ADT Bundle” link – that’s intended for Eclipse users. Instead, look for where it says “Use an existing IDE,” and download the SDK Tools for Windows.
You may have to accept another license agreement. Then it will download the latest Android SDK, which at the time I’m writing this is revision 22.3.
When you double-click to extract the zip file, it will create a folder android-sdk-macosx
. Look inside that folder for the tools
» android
program, and double-click it.
You may get a warning about this being from an unidentified developer.
If so, you’ll have to go into your System Preferences » Security & Privacy and enable such software.
Once the android
program has started, there should be a window called the Android SDK Manager. It will pre-select some default packages and versions.
Another package you will need to add right away is near the bottom, under “Extras,” called “Android Support Repository.”
With all those selected, hit the button in the lower right that says “Install N packages…” Accept the license agreements, and then wait for those downloads to finish.
Once the downloads finish, you can close the Android SDK Manager.
If it is not already open, double-click the Android Studio application from where you unzipped it. As it starts, Android Studio will offer to import settings; I recommend not to.
Once you see this Welcome screen, select Configure » Project Defaults » Project Structure. In the section for the Project SDK, click New and select Android SDK.
Then you’ll have to specify the path where your Android SDK was unzipped. Mine was:
/Users/league/Downloads/android-sdk-macosx
Studio will then confirm the versions that it found.
Back out to the main welcome screen. Now you should be ready to create the Hello World app.