Tuesday, August 02, 2011

Setting Up the Android SDK

Sometime earlier this year or late last year, I decided I'd try my hand at Android development. So, I downloaded the Android Developers' Kit (ADK), installed its Eclipse plugin, only to find that my program won't run. So I just left it there.
Last night I started reinstalling the ADK on my new laptop, as I have a class that focuses on Android development today.
Here is a summary of the stuff I had to do to setup my computer for Android development...
  • Download and install Java. (Java SE 6 JRE and JDK) I had to download jre-6u26-windows-x64.exe and jdk-6u26-windows-x64.exe since my comp was 64-bit, also the system requirements page said that one needed either Java SE 5 or 6.
  • Download and run the ADK installer.
  • Create a directory junction pointing to the actual folder. I discovered that I needed to do this when I tried to run my Hello Word Android app and it crashed. I found the solution in a StackOverflow thread: open the console as an administrator, and run MKLINK /J C:\Android "C:\Program Files\Android\adroid-sdk\".
    In Eclipse...
  • Set the SDK file path to C:\Android
    In the Android SDK and AVD Manager...
  • Download the Android SDK Platform Tools and SDK Platforms 2.1 & 2.2
  • Create an AVD for the SDK Platform 2.1.

No comments:

Post a Comment