【转】升级android sdk时A folder failed to be renamed or moved 错误的解决

参考: http://my.oschina.net/tonyyang/blog/13152

错误提示如下:
Downloading Android SDK Tools, revision 4
Installing Android SDK Tools, revision 4
Failed to rename directory D:\android-sdk-windows\tools to D:\android-sdk-windows\temp\ToolPackage.old01
-= 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.) Please close all running programs that may be locking the directory 'D:\android-sdk-windows\tools' and try again.


第一种方法:

1, 复制 tools目录 为一个新的目录 tools-copy ,此时在android-sdk-windows 目录下有两个目录 tools 和 tools-copy
2, 在tools-copy目录运行 android.bat ,这样就可以正常 update all 了


第二种办法(我使用的是这种方法):

解压android sdk中的TEMP文件夹中的ZIP文件,删除tools文件夹,然后建立tools文件夹,把解压文件放入新建的文件夹下,然后点击android.bat,即可正常的update all了

你可能感兴趣的:(android sdk)