6 回答
I am using Eclipse Helios. Download Eclipse IDE for Java Developers from here & update it latest packages by goto to menu Help -> Check for new updates.
Download & install Android SDK.
To install ADT Plugin:
- Start Eclipse, then select Help > Install New Software.... Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
Click OK Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
- In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
- In the next window, you'll see a list of the tools to be downloaded. Click Next.
- Read and accept the license agreements, then click Finish. Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
- When the installation completes, restart Eclipse.
Procedure to work with android in Eclipse juno is :
Step 1:
Install jdk-7 version and then Install installer_r16-windows.exe
Step 2:
now unzip the android-sdk and paste it into disk c android folder and replace all.
Step 3:
now unzip the eclipse-juno.
Step 4:
open eclipse ide and go to the help option and click on new software install option.
Step 5:
click on archive and give the path to ur ADT-20.0.3 or any version and choose restart eclipse option.
Step 6:
now two green button will be displayed on the left most upper side of eclipse.
Step 7:
first click on small arrow type button and see all the packages are installed if not choose install package.
Step 8:
now click on second big green button named AVD i.e android virtual device.
Step 9:
click on new and configure ram and all u want in your AVD.
Step 10:
your AVD is on screen now.
(Using the comments to provide an answer)
Try using the latest version of Eclipse (Juno), or at least Eclipse Indigo. The newer version of the Android Framework might have dependencies that the latest versions of Eclipse provide.
If this is incorrect / doesn't work, let us know so we can update the solution.
You didn't install ADT plugins yet or something goes wrong.
Download ADT-20 form HERE
In eclipse goto--> Help --> Install new Software --> Select ADT-20.zip
For step-by-step instruction HOW TO INSTALL ANDROID see this
As per your given error it is sure an version problem.. you might be trying to add ADT whose version is below ADT-20 and your ecllips is asking for ADT-20..so try to provide link which contains ADT version 20. If still problem exists go to : http://developer.android.com/sdk/installing/installing-adt.html there they have also given download for ADT-20.zip file download it and install it manually.
I had the same problem, I installed Eclipse Indigo and it worked perfect... because it's version 3.7.2 so it should be working fine with this.