It Says Connection Error So Now What

If you get a connection error, the most likely cause is some kind of firewall erected by your system administrators. To get outside the firewall, you'll need to configure Eclipse with the address of your proxy server. This is the same proxy server you use for your web browser, but unfortunately Eclipse isn't smart enough to pick up the setting from there.

To tell Eclipse about the proxy, select Window > Preferences > General > Network Connections (Eclipse > Preferences on Mac OS X), turn on the option for Manual proxy configuration, enter the server name and port number, and click OK. If you don't see the option, you may be running an older version of Eclipse. Try looking under Preferences > Install/Update, or search the preferences for the word proxy.

See the Web Tools platform home page5 for more details and download links. These are already built into the recommended packages mentioned earlier.

9. Review the list of items to be installed, click Next again, accept the license agreements, and then click Finish to start the download and install process.

10. Once the install is done, restart Eclipse.

11. When Eclipse comes back up, you may see a few error messages because you need to tell it where the Android SDK is located. Select Window > Preferences > Android (Eclipse > Preferences on Mac OS X), and enter the SDK install directory you noted earlier. Click OK.

Whew! Luckily, you have to do that only once (or at least once every time a new version of ADT or Eclipse comes out). Now that everything is installed, it's time to write your first program.

5. http://www.eclipse.org/webtools

0 0

Post a comment