无法升级的Andr​​oid SDK工具 [英] Can't upgrade Android SDK Tools

查看:159
本文介绍了无法升级的Andr​​oid SDK工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

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

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

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

伊泰。

解决方案

摘自的这里

  

说明:

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

基本上,在此线程如前所述,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:

  1. make a copy of the tools directory and call this new directory tools2.
  2. DO NOT USE 'SDK Setup.exe'.
  3. 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..

这篇关于无法升级的Andr​​oid SDK工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆