java

Google
 

9/11/2011

Setting Up Android Development With Eclipse IDE on Windows 7 64 bit


Setting Up Android Development With Eclipse IDE on Windows 7 64 bit

What You’ll need:
Installing Java SDK
First you should make sure you have the JDK installed, so just install the executable and that should be it.
Installing Eclipse
Extract the eclipse file wherever you want to use it, no setup needed.
Installing the Android SDK
Extract the download .zip file where you want the SDK to be, keeping note of it. To install them you are supposed to go into <sdk unzip dir> and click on “SDK Setup.exe”. This will put the SDK targets for when you go to Window > Prefrences > Android after the ADT install(next step). This, however did not seem to work for me, so look at the last section if this happens.
You’ll also want to add it to your PATH. To do this:
  1. Right Click My Computer > Properties > Advanced System Settings (on the left bar)
  2. Click on Environment Variables
  3. Go to System Variables and scroll to find “Path” and click edit.
  4. Add the location of the “tools” folder to the end. (For example: variable1;variable2;<SDK unzip dir>\tools\
  5. Click Okay and all that good stuff.
Installing the Android Plugin for Eclipse (ADT)
  1. Go to Help > Install New Software…
  2. In this window, click Add
  3. Enter whatever name you want and this URL: https://dl-ssl.google.com/android/eclipse/
  4. Click ok, and select the checkbox for Development Tools and click Install.
  5. Select both things that come up and hit Next. Accept  the license agreements and click Finish.
  6. It will ask you to restart Eclipse. Do so.
  7. It will then give you an error saying you need to setup the SDK. So, go to Window > Prefrences > Android and browse for where you unzipped the Android SDK. Click Apply. If nothing appears, go to the next section, if you get stuff then your “SDK Setup.exe” worked and you have your SDK targets available.
Adding SDK Components (If the “SDK Setup.exe” didn’t work for you)
  1. In Eclipse, Go to Window > Android SDK and AVD Manager.
  2. Under “Installed Packages”, update if you want(could take a while).
  3. This will download the stuff. So when done, close it (it may ask you to restart ADT, thats fine).
  4. Now when you go to Window > Prefrences > Android and have the SDK location in. The SDK targets will now be there!
To verify everything is working fine, do a little Hello World (http://developer.android.com/resources/tutorials/hello-world.html).

No comments:

728*90
Powered By Blogger