Installing the Eclipse IDE and Android SDK to build Android apps on Windows 7 64-bit
I just got the new Motorola Droid and I love it! Naturally I want to try my hand at building my own apps for it. I have no idea if I’ll have the time to stick with it but below is the step by step to get the “stuff” installed so you can begin.
If you’re looking for how to create a new android project with Eclipse go check out Part 2.
Sites I used along the way for help
Preparation (getting the files)
My setup (for reference):
- Windows 7 Professional (64-bit)
- Intel Quad Core Q6600
- 8GB RAM
Things you’ll need:
- Eclipse IDE 64-bit. This was tough to find but you can get it at the link below.
- Go to http://download.eclipse.org/eclipse/downloads/drops/R-3.5.1-200909170800/index.php and download the Windows (x86_64) version.
- Java Runtime Environment (JRE)
- Go to http://www.java.com/en/download/manual.jsp#win and download the Windows 64-bit version
- Android SDK
- Go to http://developer.android.com/sdk/index.html#quickstart and get the Windows package called android-sdk_r3-windows.zip
Install the Eclipse IDE by extracting the .zip file and then paste the “eclipse” folder inside into the root of your C:\ drive.
|Extracts like this||Paste the “eclipse” folder here|
Installing the JRE
Install the Java Runtime Environment (JRE) with all the defaults.
Edit the Windows Environment Variable PATH to include the javaw.exe location
- Hit the start button and search for “environment variables”
- Choose “Edit the System Environment Variables” and you’ll see the window below. Then click on the button at the bottom that says “Environment Variables”
- Choose the “path” variable and click Edit.
- I found it easier to copy out the value to notepad and work with it there. Be very careful though. You don’t want to lose anything. Add the following to the end of the string: ;%PROGRAMFILES%\Java\jre6\bin. Don’t miss that semicolon at the beginning. You’ll need it to separate your new string from the stuff that was already there.
- After you’ve added the text click OK until everything is saved.
Now let’s try to fire up Eclipse and see if it’s happy. Just go to the “eclipse” folder you created earlier and run eclipse.exe.
- Success looks like this and asks you to select a workspace. I agreed to the default and said OK.
- If you got an error message please make sure that you installed both a 64-bit JRE and the 64-bit Eclipse IDE.
Install the Android SDK
Install the Android SDK by extracting the .zip file and then paste the “android-sdk-windows” folder inside into the root of your C:\ drive.
|Extracts like this||Paste the “android-sdk-windows” folder here|
Next you need to add onto the PATH Environment Variable like we did up above for the JRE. This time you want to add: ;%HOMEDRIVE%\android-sdk-windows.
Type in the following and click OK.
- Name: Android Plugin
- Location: https://dl-ssl.google.com/android/eclipse/
After it finishes installing you must restart Eclipse to use the Android Development Tools (ADT).
I haven’t touched on the actual development of an Android app but I’m not sure I need to. There’s great documentation for a “Hello World” app at http://developer.android.com/guide/tutorials/hello-world.html. I only constructed this tutorial to show that getting ready to develop for android is pretty easy.
UPDATE – I just created my first android app and the process can be found here. It picks up right where this post leaves off.