无法升级的Andr​​oid SDK工具工具、Andr、oid、SDK

2023-09-12 21:44:37 作者:酱酱酱酱酱紫

我想从版本15的Andr​​oid SDK工具升级到更新失败的修订16,声称文件夹无法移动:

 无法重命名目录C:\ Android的SDK \工具到C:\ Android的SDK \ TEMP \ ToolPackage.old01。
 

我尝试禁用我的防病毒(因为这个问题已经报告了一些人,2009年),并没有奏效。新鲜重启没有工作,要么。我在两个不同的Windows 7计算机遇到此问题。

我没有遇到从previous修正这个问题升级一路攀升到版本15。

任何人都知道我怎么能绕过这个?

伊泰。

解决方案

摘自的这里:

  

说明:

        请tools目录中的副本,并把这种新目录tools2。   请不要用'SDK的Setup.exe。   而不是打开一个CMD.EXE窗口的以管理员身份的和在本地机器上运行这个新tools2目录(显然的完整路径如下   将是不同的):   记者:\ Android的SDK-窗口> tools2 \ android.bat更新SDK         

基本上,在此线程如前所述,SDK的Setup.exe调用   工具\ android.bat,这使得它不可能为它重新命名   此后tools目录中。这是一个有点傻傻的,应该不会有   通过QA验证。

I'm trying to upgrade the Android SDK tools from revision 15 to revision 16. The update fails, claiming that a "folder failed to be moved":

Failed to rename directory C:\android-sdk\tools to C:\android-sdk\temp\ToolPackage.old01.

I tried disabling my antivirus (as this problem has been reported by some people in 2009), and it didn't work. A fresh reboot didn't work, either. I'm encountering this problem on two different Windows 7 machines.

I did not encounter this problem upgrading from previous revisions all the way up to revision 15.

Anybody knows how I can circumvent this?

Itay.

解决方案

Extracted from here:

INSTRUCTIONS:

make a copy of the tools directory and call this new directory tools2. DO NOT USE 'SDK Setup.exe'. Instead open up a cmd.exe window as administrator and run the following from this new tools2 directory (obviously the full path on your local machine will be different): J:\android-sdk-windows>tools2\android.bat update sdk

Basically, as noted before in this thread, 'SDK Setup.exe' invokes tools\android.bat, which makes it impossible for it to rename the tools directory thereafter. It's a bit goofy and should never have passed QA validation..