Sunday, October 17, 2010

Steps in Installing Android SDK within Eclipse

In this post, I am giving the steps to easily install Android in Windows 7 and hooking it up with Eclipse.
Installing in Windows XP and Vista is more or less the same.


  1. Download Android SDK from here
  2. Extract the files and store them at any location.
  3. Go to start. Right click on My Computer and go to "properties"
  4. go to "advanced" --> "environment variables" and then to "system variables"
  5. now open "PATH" variable in system environment variables. 
  6. Copy the path where Android is stored from "My Computer".
  7. In "Variable Value" at the end of the existing link, put a semicolon ';' and then paste the path of Android here.
  8. Press "OK" thrice to Come out of "System Properties"
  9. Start Eclipse
  10. Go to "Windows" --> "Android SDK and AVD Manager".
  11. If you are getting any error stating that Preferences is not set, then go to "Windows"  --> "Preferences" --> "Android" and at SDK Location give the path to the location of Android in your system and press "Ok" .
  12. In "Android SDK and AVD Manager" go to "Available Packages in the left pane.
  13. There will be a root link in the right pane referring it to Google Android.
  14. Click the root link and make sure all the Child links are the child links are ticked.
  15. Then click "Install Selected" and then a pane named "Choose Packages to Install" appears.
  16. Click "Accept All" and then "Install" and a menu titled "Installing Archives" appears where all the packages get downloaded and installed.
  17. Sometimes, it takes a while to download and install all the Packages.
  18. Then, it asks permission to to restart ADB. Press "Yes" and after a while press "Ok".
  19. Press "Close".
  20. Close the "Android SDK and AVD Manager".
  21. Sometimes, it may ask to restart Eclipse. That should be "Ok".
Now, Android is installed in your system. To test if Android is successfully installed, go to "File" --> "New" 
--> "Project". In the "New Project" menu, you will find "Android" and in it you will find "Android Project" and "Android Test Project". This ensures that Android is successfully installed.

Welcome to Android! Have Fun!

Cheers!

These following books can be referred for Android all though Google Support is better.

No comments:

Post a Comment