Error updating SDK using SDK Manager

I am completely disappointed with the Android SDK Manager.

I run Win 7 Home Edition and install the SDK in my own top-level directory on my D: \ drive.

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

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

"Folder has not been renamed or deleted" yada yada yada. In the "Install Archives" window, it says "Failed to rename the 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.

  • I have disabled my antivirus (AVG).

  • I have no other running programs - just a command prompt to launch the SDK manager.

  • I even gave the group everyone, for the folder D: \ android-sdk-windows \ full control.

  • I tried to rename the tool directory before starting the SDK Manager, but then I get an error that the batch file could not be found when I try to run the SDK Setup.exe. Grrrr.

None of this works.

Suggestions on how to get the upgrade package without errors are welcome.

Thanks!

+7
android
source share
10 answers

Simple thing

After this error, a file with a zip file will be created. This means the updated tools_r16-windows.zip tools in C: \ Program Files \ Android \ android-sdk \ temp

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

Enjoy :) I think this may help. Please give your comments!

+15
source share

If you get this error when using Eclipse in a 64-bit window 7 (possibly 32-bit), exit Eclipse, go to the SDK folder and run "SDK Manager.exe" as an administrator. In my case, Eclipse turned out to be the one that locked the folder first.

+4
source share

@Stratos - Thanks for your instructions, they worked for me.

  • Go to Android \ Android-SDK \ tools \
  • Delete "source.properties" (right click - delete)
  • Open the SDK manager and update it

And everyone lived happily ever after ...

+3
source share

You cannot use 64 bit java or 64 bit eclipse. This is almost certainly your problem.

+1
source share

There was the same problem. For me it was a bit cool, the SDK manager had a hold in source.properties and closing the process completed the update. I removed android-sdk \ tools \ source.properties before running the SDK manager and it all worked. Oh, and I have not updated through Eclipse, so this is not an Eclipse problem.

0
source share

I can’t vote, otherwise I would vote for Stratos.

I have already disabled my Norton antivirus (after reading other posts). Removed source.properties file.

Do not forget to run the SDK manager with administrator rights, if it has not already been.

0
source share

There is another easy way:

When the SDK asks you to install the Java SE JDK, click and then click. This time it will detect the installed JDK. I solved this problem twice with this method.

0
source share

Use Unlocker to unlock the tool folder.

Right-click the tools → Unlocker folder. That way, you don’t even need to figure out what locks the folder ...

0
source share

Run the Adb.exe management and shutdown task. This is a program that holds a folder. Rename the tool folder to another name, for example. 'Toolsold. Then extract the zip file containing the new tools folder. Restart updates, and it should be detected as updated, and it should continue outstanding tasks.

0
source share

Run the SDK manager as administrator, this is fixed for me

0
source share

All Articles