今天尝试升级ADT到23版本时出错,网上给出的方法尝试过,最终整理出如下解决方案。
An error occurred while uninstalling
session context was:(profile=profile, phase=org.eclipse.equinox.internal.p2.engine.phases.Uninstall, operand=[R]org.eclipse.platform.ide.executable.win32.win32.x86_64 4.3.1.M20130911-1000 --> null, action=org.eclipse.equinox.internal.p2.touchpoint.natives.actions.).
Backup of file F:\迅雷下载\adt-bundle-windows-x86_64-20140321\eclipse\eclipse.exe failed.
Can not remove : F:\迅雷下载\adt-bundle-windows-x86_64-20140321\eclipse\eclipse.exe
大致意思是不能删除eclipse.exe,
解决方案:
首先我们需要备份好这几个文件复制到桌面 eclipsec.exe(注意是eclipsec.exe 不是eclipse.exe) eclipse.ini .eclipseproduct 和 configuration文件夹下的config.ini 然后将eclipse.exe 重命名为 eclipse.exe.bak ,然后Help->About ADT->Installation Details 开始卸载,弹出这个框,注意不要点yes,我们选择no
然后安装新版本adt,我事先下载好ADT-23.0.0.zip, Help->install new software->add->archive选择ADT-23.0.0.zip
确定,developer tools打上勾,注意此时去掉contact all update sites during install to find required software的勾, 并且断网,不然会很慢,然后next->next->I accept the terms... ->finish
安装完成,选yes,并没有重启,因为重名了eclipse.exe ,将eclipse.exe.bak 改回来,并且将事先备份的文件放回原来的位置eclipsec.exe eclipse.ini .eclipseproduct 在eclipse根目录,config.ini 在configuration文件夹下。
双击eclipse.exe打开,Help->about adt 点击机器人头像 查看 更新成功