Android:无法更新到 Android SDK 工具,修订版 7 [英] Android: trouble updating to Android SDK Tools, revision 7

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

问题描述

目前我有 Android SDK 2.1(+ 工具修订版 4).我想升级到 Android SDK 2.2.当我尝试这样做时,我被告知我需要先将 Android SDK 工具升级到修订版 7.所以我同意,这个过程开始了,然后我得到一个错误:

Currently I have Android SDK 2.1 (+ tools revision 4). I'd like to upgrade to Android SDK 2.2. When I try to do it I'm informed I need to upgrade Android SDK Tools to revision 7 first. So I agree, the process starts and then I get an error:

-= 警告!=- 文件夹重命名或移动失败.在 Windows 上这个通常意味着一个程序是使用该文件夹(例如 WindowsExplorer 或您的防病毒软件.)请暂时停用您的防毒软件.也请关闭任何可能正在运行的程序访问目录'D:InstallProgrammingandroid-sdk-working-dirandroid-sdk_r04-windowsandroid-sdk-windows oo!s'.准备好后,按是"重试.

-= 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 'D:InstallProgrammingandroid-sdk-working-dirandroid-sdk_r04-windowsandroid-sdk-windows oo!s'. When ready, press YES to try again.

下载 Android SDK 工具,修订版 7 安装 Android SDK工具,修订版 7

Downloading Android SDK Tools, revision 7 Installing Android SDK Tools, revision 7

重命名失败目录D:InstallProgrammingandroid-sdk-working-dirandroid-sdk_r04-windowsandroid-sdk-windows ools 到D:InstallProgrammingandroid-sdk-working-dirandroid-sdk_r04-windowsandroid-sdk-windows empToolPackage.old01.

Failed to rename directory D:InstallProgrammingandroid-sdk-working-dirandroid-sdk_r04-windowsandroid-sdk-windows ools to D:InstallProgrammingandroid-sdk-working-dirandroid-sdk_r04-windowsandroid-sdk-windows empToolPackage.old01.

我知道 http/https 和防病毒问题.所以我停用了我的 AV.我还关闭了任何可能持有该文件夹句柄的应用程序.Eclipse 也关闭(我通过命令行启动管理器).但是我仍然遇到同样的错误.

I am aware of http/https and antivirus issues. So I disactivated my AV. I also closed any application that might hold a handle to the folder. Eclipse is also closed (I start the manager via command line). However I still get the same error.

看起来唯一可以持有文件夹句柄的应用程序是管理器本身,因为它的起始目录是错误抱怨的那个(' ools').

Looks like the only app that can hold a handle to the folder is the manager itself, because its starting directory is the one the error complains about (' ools').

我使用的是 Win XP Pro + SP3.我以管理员身份运行.

I am on Win XP Pro + SP3. I run as admin.

有人有想法吗?

推荐答案

认为他们在更高版本的工具中解决了这个问题,但我不久前遇到了这个问题.这是我所做的:

I think they fixed this problem in the later version of the tools, but I ran into this a while back. Here's what I did:

  1. tools复制到SDK目录中的scrap
  2. scrap 目录运行 android
  3. 升级了吗
  4. 完成后删除scrap目录
  1. Copied tools to scrap within the SDK directory
  2. Ran android from the scrap directory
  3. Did the upgrade
  4. Deleted the scrap directory when done

我可能还必须将指向 tools 的环境变量(例如 PATH)更改为指向 scrap在这个过程中——我对细节有点模糊.

I might have had to also change environment variables (e.g., PATH) that had been pointing to tools to point to scrap during this process -- I'm a bit fuzzy on the details.

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

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