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

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

问题描述

我正在尝试将 Android SDK 工具从修订版 15 升级到修订版 16.更新失败,声称无法移动文件夹":

<块引用>

无法将目录 C:android-sdk ools 重命名为C:android-sdk empToolPackage.old01

我尝试禁用我的防病毒软件(因为有人在 2009 年报告了这个问题),但没有成功.新的重新启动也不起作用.我在两台不同的 Windows 7 机器上遇到了这个问题.

从以前的版本升级到版本 15,我没有遇到这个问题.

任何人都知道我该如何规避这个问题?

解决方案

摘自这里:

<块引用>

说明:

  1. 制作 tools 目录的副本并将这个新目录命名为 tools2.
  2. 请勿使用SDK Setup.exe".
  3. 以管理员身份打开一个 cmd.exe 窗口并从这个新的 tools2 目录运行以下命令(显然是本地计算机上的完整路径会有所不同):J:android-sdk-windows>tools2android.bat 更新sdk

基本上,正如之前在此线程中所述,SDK Setup.exe"调用toolsandroid.bat,这使得它无法重命名之后的工具目录.这有点傻,不应该有通过了 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 ools to C:android-sdk empToolPackage.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?

解决方案

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>tools2android.bat update sdk

Basically, as noted before in this thread, 'SDK Setup.exe' invokes toolsandroid.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..

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

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