Android Security Cookbook
上QQ阅读APP看书,第一时间看更新

Alternative installation of the ADT

If the preceding methods for installing Eclipse and the ADT plugin don't work for some reason, you could always take the old school route and download your own copy of Eclipse and install the ADT plugin manually via Eclipse.

How to do it...

Downloading and plugging in the ADT works as follows:

  1. Download Eclipse—Helios or a later version—from http://www.eclipse.org/downloads/. Please make sure to select the appropriate version for your operating system. You should see a page that looks like the following screenshot:
    How to do it...
  2. Download the ADT bundle for your platform version from the Android website, http://developer.android.com/sdk/installing/installing-adt.html. The following screenshot displays a part of the page on this website:
    How to do it...
  3. Make sure you have the Java JDK installed.
  4. If your JDK installation is good to go, run the Eclipse installer you downloaded in step 1.
  5. Once Eclipse is installed and ready to go, plugin your ADT.
  6. Open Eclipse and click on the Help button in the menu bar.
    How to do it...
  7. Click on Install New Software....
  8. The Available Software dialog box will pop up. You need to click on Add….
    How to do it...
  9. The Add Repository dialog box will show up. You need to click on the Archive... button.
  10. A file browser should pop up. At this point, you will need to navigate to the ADT ZIP file that you downloaded in the previous steps.
    How to do it...
  11. After finding the ADT file, click on Open.
  12. Then click on OK.
  13. You will be shown the available packages in the .zip archive. Click on Select All and then on Next.
    How to do it...
  14. You will now need to accept the license agreement; of course, you reserve the right not to. It's always a good idea to give it a read. If you're happy, select the I accept the terms of the license agreements option and then click on Finish.
    How to do it...
  15. The software installation will now begin. You may get a warning stating that the content is unsigned and the authenticity cannot be verified. Click on OK.
    How to do it...
  16. Restart Eclipse.

The Android SDK, the device emulator, and the supporting Eclipse functionality should be ready to go now. See your Eclipse toolbar. It should have some new icons.