adt 23.0.4 升级报错、错误

adt 23.0.4 升级报错、错误

蛮长一阵子没有更新ADT,正好Android 5.0 Release有一段时间,就顺势更新:

当按下Next后进行更新ADT 23.0.4 途中却发生如下图的问题:

An error occurred while collecting items to be installed
session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,com.android.ide.eclipse.adt,23.0.4.1468518
No repository found containing: osgi.bundle,com.android.ide.eclipse.base,23.0.4.1468518
No repository found containing: osgi.bundle,com.android.ide.eclipse.ddms,23.0.4.1468518
No repository found containing: osgi.bundle,com.android.ide.eclipse.gldebugger,23.0.4.1468518
No repository found containing: osgi.bundle,com.android.ide.eclipse.hierarchyviewer,23.0.4.1468518
No repository found containing: osgi.bundle,com.android.ide.eclipse.traceview,23.0.4.1468518
No repository found containing: osgi.bundle,overlay.com.android.ide.eclipse.adt.overlay,23.0.4.1468518
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.adt.feature,23.0.4.1468518
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.ddms.feature,23.0.4.1468518
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.gldebugger.feature,23.0.4.1468518
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.hierarchyviewer.feature,23.0.4.1468518
No repository found containing: osgi.bundle,com.android.ide.eclipse.ndk,23.0.4.1468518
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.ndk.feature,23.0.4.1468518
No repository found containing: org.eclipse.update.feature,com.android.ide.eclipse.traceview.feature,23.0.4.1468518

经过资料寻找的结果,其中解决方式就是取消Contact all update sites during install to find required software

更新过程中这步骤是不需要的,更新过程中只要针对列出的更新来进行升级版本就可以,不需要再去查询其他站台的资讯,接下来按Next进行下一步,等待更新的过程中会跳出安全性警告,google未对这些套件进行签章动作,所以会跳出警告,这可以跳过这个警告直接按下OK同意它。

完成后会需要重新启动Eclipse,按下Yes

重新启动Eclipse后我们确认一下更新是否成功,按下关于Eclipse

按下Installation Details查询已安装的细节:

确认Installed Software中的ADT相关套件的Version版本与你想要更新的版本是否正确:

如果一切都没问题,按下Close完成升级的动作!