经过一番google查找解决,现在将他们记录下来。
从Eclipse官网下载了Eclipse Classic 4.3 M2版本后,在Eclipse的在Help->Install New Software,location中输入插件地址http://dl-ssl.google.com/android/eclipse,选择OK安装ADT插件,结果停留在calculating requirements and dependencies很长时间,搜索后得知是因为安装是选择了“Contact all update sites during install to find required software”前的复选框,解决方法(安装其他插件同理):但是去除的副作用是造成后来安装出现错误
1、把“Contact all update sites during install to find required software”(在安装时先访问所有更新站点去寻找需要的软件)前面的勾去掉,然后重新安装。
2、如果从本地安装,断开网络,可解决该问题。
3、下载离线安装包。具体地址见http://developer.android.com/sdk/installing/installing-adt.html中Troubleshooting项下第一条Download the ADT Plugin zip file (do not unpack it):
接下来的安装ADT,选中展开的,过程中又遇到错误(正是去除了calculating requirements and dependencies所致):
Cannot complete the install because one or more required items could not be found.
Software being installed: Android Development Tools 20.0.3.v201208082019-427395 (com.android.ide.eclipse.adt.feature.group 20.0.3.v201208082019-427395)
Missing requirement: Android Development Tools 20.0.3.v201208082019-427395 (com.android.ide.eclipse.adt.feature.group 20.0.3.v201208082019-427395) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found
找不到依赖的org.eclipse.wst.sse.core。
网上查到的解救方法是:
1、在Eclipse的在Help->Install New Software 中找到Eclipse的主要更新源,即在work with记录的下拉列表中找到Juno - http://download.eclipse.org/releases/juno 。
2、在更新中找到Web, XML, and Java EE Development 下的 WST Server Adapters然后安装。
3、最后重新安装ADT插件。
但是,安装后依旧依旧缺少org.eclipse.wst.sse.core,索性选中整个Web, XML, and Java EE Development,结果又出现缺少其他的依赖,依旧错误。看来手动添加缺失的包还是非常麻烦的,最后终于妥协,在安装时还是将 “Contact all update sites during install to find required software”的复选框选中,让eclipse自动搜寻缺失的软件包并下载安装。最后终于安装成功。
绕了一大圈,最后的结论是,在使用Eclipse classic版本安装ADT时还是要选中“Contact all update sites during install to find required software”,就多耐心多等一会吧。
有上面缺失包可以得到第二种更简单的方法安装不会出错:
法二:直接在官网下载Eclipse for RCP and RAP Developers版本,离线安装ADT成功。