To install Eclipse, you need to extract the contents of the Eclipse .zip file to the location of your choice. For this example, I’ll be using C:\ProgramFiles\Eclipse.
To install Eclipse, follow these steps:
1.Double-click the shortcut that you just created to run Eclipse:
If you’re running a recent version of Windows, the first time you run Eclipse, a Security Warning dialog box may appear. This dialog box tells you that the publisher has not been verified and asks whether you still want to run the software. Clear the Always Ask Before Opening This File check box, and click the Run button.
2. Set your workspace:
When Eclipse starts, the first thing you see is the Workspace Launcher dialog box, as shown in Figure. Here, you can modify your workspace if you want, but for this book, I’m sticking with the default: c:\users\<username>\workspace
Leave the Use This as the Default and Do Not Ask Again check box deselected, and click the OK button.
3.Configuring Eclipse:
Android Development Tools (ADT) adds functionality to Eclipse to do a lot of the work for you. The ADT allows you to create new Android projects easily;it creates all the necessary base files so that you can start coding your application quickly. It also allows you to debug your application using the Android SDK tools. Finally, it allows you to export a signed application file, known as an Android Package (APK), right from Eclipse, eliminating the need for some command-line tools.
4. Choose Windows -- Help -- Install New Software:
The Install window pops up. This window allows you to install new plug-ins in Eclipse.
5. Click the Add button to add a new site that will display the Add Repository window:
Sites are the Web addresses where the software is hosted on the Internet. Adding a site to Eclipse makes it easier for you to update the software when a new version is released.
6. Type a name in the Name field:
I recommend using Android ADT, but it can be anything you choose.
7. Type https://dl-ssl.google.com/android/eclipse/ in the Location field.
8. Click the OK button:
Android ADT is selected in the Work With drop-down menu, and the available options are displayed in the Name and Version window of the Install Details dialog box.
9. In the Install dialog box, select the check box next to Developer Tools,and click the Next button.
10. Click the Next button to review the software licenses.
11. Click the Finish button.
12. When you’re prompted to do so, click the Restart Now button to restart Eclipse.
The ADT plug-in is installed.
1. Choose Window -- Preferences.
2. Select Android in the left pane.
3. Set the SDK Location to C:\android\android-sdk-windows.
4. Click OK
To install Eclipse, follow these steps:
1.Double-click the shortcut that you just created to run Eclipse:
If you’re running a recent version of Windows, the first time you run Eclipse, a Security Warning dialog box may appear. This dialog box tells you that the publisher has not been verified and asks whether you still want to run the software. Clear the Always Ask Before Opening This File check box, and click the Run button.
2. Set your workspace:
When Eclipse starts, the first thing you see is the Workspace Launcher dialog box, as shown in Figure. Here, you can modify your workspace if you want, but for this book, I’m sticking with the default: c:\users\<username>\workspace
Leave the Use This as the Default and Do Not Ask Again check box deselected, and click the OK button.
3.Configuring Eclipse:
Android Development Tools (ADT) adds functionality to Eclipse to do a lot of the work for you. The ADT allows you to create new Android projects easily;it creates all the necessary base files so that you can start coding your application quickly. It also allows you to debug your application using the Android SDK tools. Finally, it allows you to export a signed application file, known as an Android Package (APK), right from Eclipse, eliminating the need for some command-line tools.
4. Choose Windows -- Help -- Install New Software:
The Install window pops up. This window allows you to install new plug-ins in Eclipse.
5. Click the Add button to add a new site that will display the Add Repository window:
Sites are the Web addresses where the software is hosted on the Internet. Adding a site to Eclipse makes it easier for you to update the software when a new version is released.
6. Type a name in the Name field:
I recommend using Android ADT, but it can be anything you choose.
7. Type https://dl-ssl.google.com/android/eclipse/ in the Location field.
8. Click the OK button:
Android ADT is selected in the Work With drop-down menu, and the available options are displayed in the Name and Version window of the Install Details dialog box.
9. In the Install dialog box, select the check box next to Developer Tools,and click the Next button.
10. Click the Next button to review the software licenses.
11. Click the Finish button.
12. When you’re prompted to do so, click the Restart Now button to restart Eclipse.
The ADT plug-in is installed.
Setting the location of the SDK
Follow these steps:1. Choose Window -- Preferences.
2. Select Android in the left pane.
3. Set the SDK Location to C:\android\android-sdk-windows.
4. Click OK
No comments:
Post a Comment