首页 > 代码库 > A folder failed to be renamed or moved--安装Android SDK错误问题

A folder failed to be renamed or moved--安装Android SDK错误问题

 在配置Android安装其SDK的时候出现了"A folder failed to be renamed or moved..."的提示


-=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
‘G:\software\android-sdk-windows\tools‘.
When ready,press Yes to try again.

 解决方法有两种:

第一种方法(貌似是从国外的网站上找来):

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

 

第二种方法:

 1, 进入sdk的temp文件夹,下载好后会有一个tools_r10-windows.zip(版本号可能会不一样,如r09)
 2, 解压此文件,如解压到tools_r10-windows目录
 3, 进入tools_r10-windows文件夹,将tools_r1006-windows里的文件复制
 4, 覆盖掉sdk根目录的tools文件夹中的文件


A folder failed to be renamed or moved--安装Android SDK错误问题