安装环境和升级版本

OS:Window 7 pro

JRE Version:1.6.0_25-b06

Android SDK Platform-tools:revision 4

Android SDK Tools:revision 8

要升级为Android SDK Tools,revision 11

遇到的问题:

-= warning! =-

A folder failed to be renamed or moved. On Windows this typically means that a program Is using that Folder (for example Windows Explorer or your anti-virus software.)

Please momentarily deactivate your anti-virus software.

Please also close any running programs that may be accessing the directory ‘D:CodeAndroidandroid-sdk_r07-windowsandroid-sdk-windowstools’.

When ready, press YES to try again.

解决方法:

尝试了

1,管理员模式运行,失败

2,关了什么Adb.exe,杀毒软件,各种浏览器,皆失败

3,去Eclipse Android SDK Manager更新,失败

万般无语之后只有Google之,发现原来是个老Bug了,各种版本都是这样的,在Android Google Code是排4000多的Issues……

最后还是参考了StackOverflow上CommonsWare的回答http://stackoverflow.com/questions/4360894/android-trouble-updating-to-android-sdk-tools-revision-7

  1. 在SDK的文件夹里,复制 tools所有文件 到 scrap
  2. 在 scrap 里运行android.bat,启动SDK Manager
  3. 升级之
  4. 完成后删了scrap文件夹
至于提到的修改环境变量,和需要重启以后才能删scrap文件夹我都没碰到,如果碰到大伙自行了断就好了