eclipse SDK 管理器:安装失败。SDK android 平台 3.0 API 11,修订版 2
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7022977/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
SDK Manager: Failed to install. SDK android platform 3.0 API 11, revision 2
提问by Dmitry Makovetskiyd
Failed to rename directory D:\android-sdk-windows\platforms\android-11 to D:\android-sdk-windows\temp\PlatformPackage.old01. Failed to rename directory D:\android-sdk-windows\platforms\android-11 to D:\android-sdk-windows\temp\PlatformPackage.old01. Failed to rename directory D:\android-sdk-windows\platforms\android-11 to D:\android-sdk-windows\temp\PlatformPackage.old01. Failed to rename directory D:\android-sdk-windows\platforms\android-11 to D:\android-sdk-windows\temp\PlatformPackage.old01. Failed to rename directory D:\android-sdk-windows\platforms\android-11 to D:\android-sdk-windows\temp\PlatformPackage.old01.
无法将目录 D:\android-sdk-windows\platforms\android-11 重命名为 D:\android-sdk-windows\temp\PlatformPackage.old01。无法将目录 D:\android-sdk-windows\platforms\android-11 重命名为 D:\android-sdk-windows\temp\PlatformPackage.old01。无法将目录 D:\android-sdk-windows\platforms\android-11 重命名为 D:\android-sdk-windows\temp\PlatformPackage.old01。无法将目录 D:\android-sdk-windows\platforms\android-11 重命名为 D:\android-sdk-windows\temp\PlatformPackage.old01。无法将目录 D:\android-sdk-windows\platforms\android-11 重命名为 D:\android-sdk-windows\temp\PlatformPackage.old01。
This is the message that I get when running the AndroidSDK manager when try to update the sdk manager.
这是我在尝试更新 sdk 管理器时运行 AndroidSDK 管理器时收到的消息。
SDK Manager: Failed to install A folder failed to be moved.. it suggests that something else is using the folder..like antivirus..but nothing does!!!
SDK 管理器:安装失败 文件夹无法移动.. 这表明其他东西正在使用该文件夹.. 像防病毒.. 但没有任何作用!!!
I cant update the SDK manager and add a component called: SDK android platform 3.0 API 11, revision 2.
我无法更新 SDK 管理器并添加一个名为:SDK android 平台 3.0 API 11,修订版 2 的组件。
How can i install that component
我如何安装该组件
采纳答案by zim333311
I got that message once because I had an explorer window open to that directory. If it isn't antivirus, then try having the sdk manager as your only open window. If that fails, then open task manager and end every process that could be using it. If that fails, then something is probably wrong with your computer.
我收到了一次该消息,因为我打开了一个指向该目录的资源管理器窗口。如果它不是防病毒软件,请尝试将 sdk 管理器作为唯一打开的窗口。如果失败,则打开任务管理器并结束可能使用它的每个进程。如果失败,那么您的计算机可能有问题。
回答by Core
On Windows 7, I got the same messages (I tried to do an SDK update by starting AVD manager within Eclipse). I think the root cause is needing Admin permissions for the SDK folder. So it might not be affecting folks who didn't allow the SDK to install under "Program Files...".
在 Windows 7 上,我收到了相同的消息(我尝试通过在 Eclipse 中启动 AVD 管理器来进行 SDK 更新)。我认为根本原因是需要 SDK 文件夹的管理员权限。所以它可能不会影响那些不允许在“程序文件...”下安装 SDK 的人。
My fix was to run "SDK Manager.exe" as administrator.
我的解决方法是以管理员身份运行“SDK Manager.exe”。
回答by Christopher R. Goldsbury
Here's the problem I ran into and how I fixed it:
这是我遇到的问题以及我如何解决它:
- The program that is using that folder is Eclipse itself. So using the Android SDK manager and launching it from Eclipse creates an situation where the SDK Manager tries to update a folder that Eclipse is using. When you shut down Eclipse...you shut down the Android SDK manager. So you get stuck in an endless and silly situation.
- 使用该文件夹的程序是 Eclipse 本身。因此,使用 Android SDK 管理器并从 Eclipse 启动它会导致 SDK 管理器尝试更新 Eclipse 正在使用的文件夹。当您关闭 Eclipse 时……您关闭了 Android SDK 管理器。所以你陷入了无休止和愚蠢的境地。
To solve this:
要解决这个问题:
- Close Eclipse and don't ever update the Android SDK from Eclipse again.
- Navigate to where your Android SDK is installed, and then launch it from there by double clicking: SDK Manager.exe
- Once you do this you can now download and install all updates needed without having Eclipse open.
- 关闭 Eclipse 并且永远不要再次从 Eclipse 更新 Android SDK。
- 导航到您的 Android SDK 的安装位置,然后通过双击从那里启动它:SDK Manager.exe
- 完成此操作后,您现在可以下载并安装所需的所有更新,而无需打开 Eclipse。
回答by Xezuka
This was my exact situation, but closing everything I could didn't do the trick. I finally (d'oh) tried a re-install of the SDKs from the Android Dev site:
这就是我的确切情况,但关闭我所能做的一切并没有成功。我终于 (d'oh) 尝试从 Android Dev 站点重新安装 SDK:
Android SDK - developer.android.com/sdk
Android SDK - developer.android.com/sdk
... and it did the trick for me! It installed right away, started running the manager, and began updating the ones that previously wouldn't update!
......它对我有用!它立即安装,开始运行管理器,并开始更新以前不会更新的那些!
Good luck!
祝你好运!
回答by William
Run Eclipse as Administrator, then start the SDK manager and update.
以管理员身份运行 Eclipse,然后启动 SDK 管理器并更新。
回答by Ronnie
If none of the above solutions work for you, then this might be the case of Terminal/shell prompts open navigating to Android-sdk folders. Close all those terminal windows and try again.
如果上述解决方案均不适合您,则可能是终端/shell 提示打开导航到 Android-sdk 文件夹的情况。关闭所有这些终端窗口并重试。
回答by CodeWarrior
I got the same error from the Eclipse IDE.
我从 Eclipse IDE 得到了同样的错误。
- Close the Android SDK Manager and Eclipse IDE.
- Run the Android SDK Manager as an Administrator.
- 关闭 Android SDK 管理器和 Eclipse IDE。
- 以管理员身份运行 Android SDK 管理器。
You can do this by right clicking on the exe or menu shortcut and then select the Run As Administrator
option.
您可以通过右键单击 exe 或菜单快捷方式,然后选择该Run As Administrator
选项来执行此操作。
回答by red
Not sure if anyone is still interested in this, but...
不确定是否有人仍然对此感兴趣,但是......
When I got this problem, I thought I surely had the solution when I realized that I had open projects which were accessing the Android version I was trying to update. After closing the projects, I got the same error again!?!
当我遇到这个问题时,当我意识到我有打开的项目正在访问我试图更新的 Android 版本时,我认为我肯定有解决方案。关闭项目后,我又遇到了同样的错误!?!
What I did to make it work was this:
我所做的使它工作是这样的:
1.In the command window, adb kill-server
1.在命令窗口中,adb kill-server
2.Eclipse immediately starts trying to reconnect to adb. Note that Eclipse will restart adb shortly.
2.Eclipse 立即开始尝试重新连接到 adb。请注意,Eclipse 将很快重新启动 adb。
3.Before that restart occurs, do adb start-serverin the command window. (Now, I think the process isn't owned by Eclipse and it will stop trying to restart adb.
3.在重新启动之前,在命令窗口中执行adb start-server。(现在,我认为该进程不属于 Eclipse,它将停止尝试重新启动 adb。
4.Open the AVT Manager within Eclipse and do the update.
4. 在 Eclipse 中打开 AVT Manager 并进行更新。
Buggy!
越野车!
回答by Melinda Green
Core's answer is the best. Let me expand and say that the trick is to shut-down Exlipse and run SDK Manager.exe
directly. You'll find it at the top level of your android-sdk-windows
folder or wherever your android SDK lives. It seems that the rouge process that is not allowing the old SDK folder to be moved doesn't belong to a virus scanner but rather is one of Eclipse's own processes!
核心的答案是最好的。让我展开说一下,诀窍是关闭 Exlipse 并SDK Manager.exe
直接运行。您可以在android-sdk-windows
文件夹的顶层或 android SDK 所在的任何位置找到它。似乎不允许移动旧 SDK 文件夹的 rouge 进程不属于病毒扫描程序,而是 Eclipse 自己的进程之一!
回答by user2108514
I found that "Java.exe" is file that lock the SDK/Tools folder.by kill java.exe by process manager SDK manager automatically close.SDK manager neet to java.exe for execute but java.exe lock folder that SDK manager want to renamer it!!!
我发现“Java.exe”是锁定 SDK/Tools 文件夹的文件。通过进程管理器 SDK 管理器自动关闭 java.exe 杀死 java.exe。SDK 管理器需要 java.exe 执行但 java.exe 锁定 SDK 管理器想要的文件夹给它重命名!!!