首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

eclipse 无法安装adt,解决办法

2012-09-28 
eclipse 无法安装adt,解决方法Cannot complete the install because one or more required items could no

eclipse 无法安装adt,解决方法
Cannot complete the install because one or more required items could not be found要在Eclipse IDE下编写Android软件之前必须要安装ADT插件,按照Android Developers上的详细指导()应该能够很顺利的安装上这个插件。但是很不幸的是我在这个过程中出现了一些意外。
在添加完更新源和选择更新项开始更新后,出现了如图下的这个错误:
Android DDMS 和 Android Hierarchy Viewer 都已成功的安装,但是Android Development Tools 无法安装。错误提示如下:
Cannot complete the install because one or more required items could not be found.
Software being installed: Android Development Tools 8.0.1.v201012062107-82219 (com.android.ide.eclipse.adt.feature.group 8.0.1.v201012062107-82219)
Missing requirement: Android Development Tools 8.0.1.v201012062107-82219 (com.android.ide.eclipse.adt.feature.group 8.0.1.v201012062107-82219) requires 'org.eclipse.gef 0.0.0' but it could not be found
经过一番的搜索,查因,发现是因为WST Server Adapters没有安装。
解决方法:
1. 在Help->Install New Software 中找到你那个版本的主要更新源(我的是Helios版的) 就可以更新该版本就可以了。eclipse 无法安装adt,解决办法
2.在更新中找到Web, XML, and Java EE Development 下的 WST Server Adapters, 然后安装
3.最后问题安装好以后在重新安装ADT插件,那个Android Development Tools 即可正常安装
安装成功!!设置好虚拟机路径后即可在这里看到你的虚拟机了。

真正的原因是这样:ADT 10.0.0或其更低版本,安装时需要依赖WST Server Adapters,而我们从官方上下载下来的eclipse,都是没这个插件的,所以会一直失败。如果想成功安装,必须先安装好WST Server Adapters,然后才能正常安装ADT 10.0.0或其更低版本。 安卓官网上www.andriod.com也发现了这点,2011-3-15日推出了最新版ADT 10.0.1,已经修复。以下是最新版的信息:
ADT 10.0.1 (March 2011)
Dependencies:
ADT 10.0.1 is designed for use with SDK Tools r10. If you haven't already installed SDK Tools r10 into your SDK, use the Android SDK and AVD Manager to do so.
General notes:
Temporary work-around to resolve the rare cases in which the layout editor will not open.
Fix issue in which ADT 10.0.0 would install on Eclipse 3.4 and lower, even though ADT requires Eclipse 3.5 or higher (as of 10.0.0).


解决:1、到android官方下载最新版ADT 10.0.1到本地安装即可。
2、如果要继续使用ADT 10.0.0或更低版本,请先安装好WST Server Adapters后,再安装ADT,具体安装步骤请参考:http://hi.baidu.com/pragmatist/blog/item/473930a8db1582e81e17a2a2.html。

注:本人已亲自经过测试,http://www.eclipse.org/downloads/上下载eclipse-SDK-3.6.2-win32.zip 和eclipse-SDK-3.5.2-win32.zip 安装都报一样的错误,用以上两种方法解决都都试验成功。

热点排行