adt-bundle 安装ADT-23.0.4.zip插件(未解决)

安装了ADT 22.3.0eclipse直接安装报错:

 

Cannot complete the install because of a conflicting dependency.
  Software being installed: Android Hierarchy Viewer 23.0.4.1468518 (com.android.ide.eclipse.hierarchyviewer.feature.feature.group 23.0.4.1468518)
  Software currently installed: Android Developer Tools 22.3.0.v201310242005-887826 (com.android.ide.eclipse.adt.package.product 22.3.0.v201310242005-887826)
  Only one of the following can be installed at once:
    Hierarchy Viewer 23.0.4.1468518 (com.android.ide.eclipse.hierarchyviewer 23.0.4.1468518)
    Hierarchy Viewer 22.3.0.v201310242005-887826 (com.android.ide.eclipse.hierarchyviewer 22.3.0.v201310242005-887826)
  Cannot satisfy dependency:
    From: ADT Package 22.3.0.v201310242005-887826 (com.android.ide.eclipse.adt.package.feature.group 22.3.0.v201310242005-887826)
    To: com.android.ide.eclipse.hierarchyviewer.feature.group 22.2.0
  Cannot satisfy dependency:
    From: Android Developer Tools 22.3.0.v201310242005-887826 (com.android.ide.eclipse.adt.package.product 22.3.0.v201310242005-887826)
    To: com.android.ide.eclipse.adt.package.feature.group [22.3.0.v201310242005-887826]
  Cannot satisfy dependency:
    From: Android Hierarchy Viewer 23.0.4.1468518 (com.android.ide.eclipse.hierarchyviewer.feature.feature.group 23.0.4.1468518)
    To: com.android.ide.eclipse.hierarchyviewer [23.0.4.1468518]
  Cannot satisfy dependency:
    From: Android Hierarchy Viewer 22.3.0.v201310242005-887826 (com.android.ide.eclipse.hierarchyviewer.feature.group 22.3.0.v201310242005-887826)
    To: com.android.ide.eclipse.hierarchyviewer [22.3.0.v201310242005-887826]

说是有重复,先卸载22.3.0版本ADT,如果在eclipse可以直接卸载就不用向下看了。

 

下面卸载先前版本,重新安装新版本ADT.

1. 删除adt-bundle-windows-x86-20131030\eclipse\plugins和features ADT相关文件夹和jar包
2. 删除adt-bundle-windows-x86-20131030\eclipse\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info文件中关于adt的bundle.
3. 删除adt-bundle-windows-x86-20131030\eclipse\artifacts.xml中关于ADT相关节点.
4. 修改adt-bundle-windows-x86-20131030\eclipse\p2\org.eclipse.equinox.p2.engine\profileRegistry\profile.profile\1422350652305.profile.gz, 不一定是1422350652305.profile.gz,关健是最新一个。
  这个文件保存所安装插件状态,不能直接删除了,删了就不能在界面安装插件了.
  注意先关闭eclipse再修改最新的一个1422350652305.profile.gz, 解压修改后覆盖一下。eclipse安装历史中没有ADT了。
5. 修改adt-bundle-windows-x86-20131030\eclipse\configuration\config.ini不使用ADT图标和启动画面;
  可以看到adt-bundle-windows-x86-20131030\eclipse\configuration\org.eclipse.equinox.simpleconfigurator中记录所有需要启动的bundle.
6. eclipse -clean启动eclipse, 这里eclipse就变成一个干净的eclipse了.
7. 重新安装ADT插件;

还是报错:

  An error occurred while collecting items to be installed
session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,javax.annotation,1.1.0.v201108011116
No repository found containing: osgi.bundle,org.eclipse.wst.common.frameworks,1.2.200.v201203141800
No repository found containing: osgi.bundle,org.eclipse.wst.common.project.facet.core,1.4.300.v201111030424
No repository found containing: osgi.bundle,org.eclipse.wst.common.uriresolver,1.2.0.v201203071939
No repository found containing: osgi.bundle,org.eclipse.wst.sse.core,1.1.702.v201301241617
No repository found containing: osgi.bundle,org.eclipse.wst.sse.ui,1.3.102.v201301162301
No repository found containing: osgi.bundle,org.eclipse.wst.validation,1.2.402.v201212031633
No repository found containing: osgi.bundle,org.eclipse.wst.xml.core,1.1.702.v201301101836
No repository found containing: osgi.bundle,org.eclipse.wst.xml.ui,1.1.302.v201301172222
No repository found containing: osgi.bundle,org.w3c.dom.events,3.0.0.draft20060413_v201105210656
No repository found containing: osgi.bundle,org.w3c.dom.smil,1.0.1.v200903091627

。。。。。。。。。。。

无语,放弃了,有时间再搞。

 

确实很麻繁啊!搞了一天这玩意,不过顺便也了解了一下eclipse架构,eclipse启动都先读取adt-bundle-windows-x86-20131030\eclipse\configuration\config.ini这个配置,里面配置了那些osgi的bundle需要启动。

再安装还是不能安装,需要修改adt-bundle-windows-x86-20131030\eclipse\p2\org.eclipse.equinox.p2.engine\profileRegistry\profile.profile\1422350652305.profile.gz这个配置才可以完全删除所有之前相关插件。

 

还是直接下载 adt-bundle-windows-x86-20140702.zip这个

这个可以直接更新5.0的SDK, 非官方下载地址:

 

http://downloads.puresoftware.org/files/android/
里面有ADT,SDK, stutio等压缩包下载 google访问不了就用这个吧。
SDK国内镜像源参考:
 

你可能感兴趣的:(Bundle)