Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SDK Manager: Failed to install. SDK android platform 3.0 API 11, revision 2

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.

This is the message that I get when running the AndroidSDK manager when try to update the sdk manager.

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!!!

I cant update the SDK manager and add a component called: SDK android platform 3.0 API 11, revision 2.

How can i install that component

like image 215
Dmitry Makovetskiyd Avatar asked Aug 11 '11 08:08

Dmitry Makovetskiyd


2 Answers

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...".

My fix was to run "SDK Manager.exe" as administrator.

like image 116
Core Avatar answered Oct 04 '22 15:10

Core


Here's the problem I ran into and how I fixed it:

  1. 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.

To solve this:

  1. Close Eclipse and don't ever update the Android SDK from Eclipse again.
  2. Navigate to where your Android SDK is installed, and then launch it from there by double clicking: SDK Manager.exe
  3. Once you do this you can now download and install all updates needed without having Eclipse open.
like image 22
Christopher R. Goldsbury Avatar answered Oct 04 '22 15:10

Christopher R. Goldsbury