This document describes the procedure to set up your computer for Android development.
The first step is to install the Java Software Development Kit (SDK). You may already have a Java Runtime Environment (JRE) if other applications on your system require it, but that is not enough. Unless you have programmed in Java on this system before, chances are you’ll need to install a JDK from scratch.
Start at this link: http://www.oracle.com/technetwork/java/javase/downloads/index.html where you will find a menu of Java SE (Standard Edition) downloads.
Choose Java Platform (JDK) – the latest version as I’m writing this is 7u51.
On the next page, you’ll need to accept the license agreement, and then you can find the
.exe file for your platform, either Windows x86 (32-bit OS) or x64 (64-bit).
How to determine if you are using 32- or 64-bit Windows: From the Windows start menu, choose Control Panel » System and Security » System, and look for the System type.
I usually recommend saving the installer and then running it, so that it’s easy to find in your Downloads folder if you get interrupted or need to reinstall.
Go through the Oracle setup wizard; all the defaults are fine.
At this point you may be redirected to a web browser to register with Oracle. That is completely optional.
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.
Run the install after the download finishes, and work through the wizard.
Pay attention here, at step 4. You can leave this as the default, or move it to
Program Files if you prefer, but you will need to make a note of this path, so we can tell Android Studio about it later:
Once the setup finishes, allow it to launch the SDK Manager. It will have pre-selected 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.
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.
After you open the downloaded zip, you’ll have to “Extract all files:”
You can choose to extract them to any folder you find convenient, such as “Desktop” or “Documents:”
Within the extracted
android-studio folder, you should see a sub-folder called
bin. Within that, there are executable files called
studio64.exe. Again, you have to use the appropriate one for your 32-bit or 64-bit OS. (You can make a shortcut to the correct Studio executable using right-click » Send to… » Desktop.)
When you double-click the Studio executable, you may get a security warning because the software isn’t signed. Run it anyway.
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 installed. Recall that mine was:
You may need to click the “Show Hidden Files” button (highlighted) to see the
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.