您的位置:首页 > 编程语言 > Java开发

eclipse 中安装android ADT时问题解决‘org.eclipse.ui.core 3.6.2’

2012-01-28 15:40 465 查看
我的eclipse的版本是3.6.01版本,在google的android官网上,目前,安装adt时建议安装在eclipse3.6版本以上,我的是在3.6以上(http://developer.android.com/sdk/eclipse-adt.html),但是在安装adt时还是出了很多问题。在网上找了很多资料,都没有解决了我的问题,最后还是老娘自己研究出怎么解决来的,下面写一下。

1,在官网下载最新版本:

Download the current ADT Plugin zip file from the table below (do not unpack it).
NamePackageSizeMD5 Checksum
ADT 16.0.1ADT-16.0.1.zip7000078 bytes03a2a23650ddac128c8b9e8aaf0aa433
Follow steps 1 and 2 in the
default install instructions (above).
In the Add Site dialog, click Archive.
Browse and select the downloaded zip file.
Enter a name for the local update site (e.g., "Android Plugin") in the "Name" field.
Click OK.

2,不要使用如下方式,因为不知什么原因,可能是网关吧,就是下载不了

Start Eclipse, then select Help > Install NewSoftware....
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and thefollowing URL for the
Location:
https://dl-ssl.google.com/android/eclipse/


Click OK

3,使用刚刚下载的zip包,然后在eclipse中加载和安装,这时报错:

缺少org.eclipse.ui.core 3.6.2

然后我以为是我的ecliopse版本应该升级到3.6.2呢,所以重新下载了一个新的eclipse,结果又报这个错:

缺少org.eclipse.jdt.core 0.0.0

然后在网上查找很多解决方案,有的说要找到一些链接资源加到Add Repository当中,然后安装。我试过很多,但是基本都不能用。最后只能还是自己想办法解决。

4,到eclipse官网,终于找到了答案,如下所示页面,地址是(http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/indigosr1),这个页面是我在点进一个eclipse下载版本的详细信息时打开的。eclipse官网下载页面提供很多all-in-one的下载包,但是,如果我们已经下载并安装了其中一个包,难道真的需要再重新下载另一个包才能找到我们想要的eclipse组件吗?不是这样的,当我们已经下载了一个版本的eclipse,我们可以找到该版本的相应的packages,然后把package打到现在版本的eclipse上,这样就可以为eclipse添加新的组件。具体方法是,我点击网页上的Helios
Packages链接,找到Eclipse IDE for Java Developers这个包,然后下载。因为我之前下载的3.6.01的eclipse是主要适用于C++程序员的,所以,我缺少Java的组件,因此下载这个组件包。

Downloads Home


Indigo Packages
Helios Packages
Galileo Packages
Ganymede Packages
Europa Packages



Eclipse IDE for Java Developers

Package Details
The essential tools for any Java developer, including a Java IDE, a CVS client, XML Editor, Mylyn, Maven integration and WindowBuilder

Feature List

org.eclipse.cvs
org.eclipse.egit
org.eclipse.egit.mylyn
org.eclipse.epp.package.common.feature
org.eclipse.equinox.p2.user.ui
org.eclipse.help
org.eclipse.jdt3.7.0
org.eclipse.m2e.feature
org.eclipse.m2e.logback.feature
org.eclipse.mylyn.bugzilla_feature
org.eclipse.mylyn.context_feature
org.eclipse.mylyn.ide_feature
org.eclipse.mylyn.java_feature
org.eclipse.mylyn.wikitext_feature
org.eclipse.mylyn_feature
org.eclipse.platform3.7.0
org.eclipse.rcp3.7.0
org.eclipse.wb.core.feature
org.eclipse.wb.core.ui.feature
org.eclipse.wb.layout.group.feature
org.eclipse.wb.swing.feature
org.eclipse.wst.xml_ui.feature
Testing Details
Package Testers
Mik Kersten

Steffen Pingel

5,下载下来的包是eclipse-java-helios-SR2-linux-gtk.tar.gz,把它放在eclipse安装目录的同级目录内,执行tar -zxvf eclipse-java-helios-SR2-linux-gtk.tar.gz,然后这个包中的内容会自动安装到eclipse目录的plugins目录中。

6,这时重新装载adt的zip文件,发现我的3.6.01版本已经能够正常安装adt了,而且不会报任何错误。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐