Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error received when updating the SDK with the SDK Manager

Tags:

android

I'm completely frustrated with the Android SDK Manager.

I'm running Win 7 Home edition and have the SDK installed in its own top level directory on my D:\ drive.

When I run SDK Setup.exe from the command line (and I've even opened the prompt as an administrator), I get an error when trying to update the packages.

The SDK manager is telling me that I need to install the SDK Tools rev 7. But when I accept the license, I get an error message stating:

"A folder failed to be renamed or removed" yada yada yada. The Installing Archives window says "Failed to rename directory D:\android-sdk-windows\tools to D:\android-sdk-windows\temp\ToolPackage.old01."

I looked here for help:

http://groups.google.com/group/android-developers/browse_thread/thread/4b784f3eb1e096fd/ecadfb28ce5daf5f?lnk=gst&q=cannot+rename+folder#ecadfb28ce5daf5f

but the content there didn't help.

  1. I DO have my antivirus (AVG) disabled.

  2. I DO NOT have any other programs running -- just the command prompt to launch the SDK Manager.

  3. I have even given the everyone group, for the D:\android-sdk-windows\ folder, full control.

  4. I tried to rename the tools directory before starting the SDK Manager but then I get an error that a batch file cannot be found when I try to launch SDK Setup.exe. Grrrr.

None of this works.

Suggestions how to get the package to update without error are greatly appreciated.

Thanks!

like image 369
Adam Avatar asked Oct 29 '10 22:10

Adam


2 Answers

A simple thing,

There will be zipped file after this error has been occured. Meaning that Updated tools got store as tools_r16-windows.zip in C:\Program Files\Android\android-sdk\temp

Just extract it and copy it in our tools folder C:\Program Files\Android\android-sdk\tools

Enjoy:) I think ths might help. Please give your comments!!

like image 60
Satheesh Avatar answered Sep 23 '22 18:09

Satheesh


If you get this error while using Eclipse on a 64-bit Window 7 (might 32-bit as well), exit Eclipse, go to your SDK folder and run "SDK Manager.exe" as Administrator. In my case, Eclipse turned out to be what locked the folder in the first place.

like image 39
Phonon Avatar answered Sep 22 '22 18:09

Phonon