Failed to update SDK

I cannot update the Android SDK tools version 21.0.1 on my Windows machine. When installed, this log shows:

Installing Android SDK Tools, revision 21.0.1 Failed to rename directory E:\android-sdks\tools to E:\android-sdks\temp\ToolPackage.old01. [find_lock] Directory locked by cmd.exe;java.exe Done. Nothing was installed. 

How to update the SDK to the latest version?

Thanks.

+4
source share
5 answers

Android SDK has been updated successfully. It works. Check here

+2
source

I went through this. just follow the steps. close eclipse (if open).

  • go to android-sdk folder
  • copy the folder folder and paste it in the same place using tools-copy2 (or any thing).
  • just run the update from tools-copy2
  • and you can update it.
+1
source

Close ADT, but leave the Android SDK Manager and click "restart" or "play"

0
source

I'm 99% sure that you really see the UAC problem. There are several well-known scenarios in which Windows Vista or 7 (and presumably 8) will allow you to create a new file, but silently block the modification and return a "file locked" error message if you try.

Try temporarily disabling UAC (remember that you need to reboot for it to take effect) and starting the update with UAC disabled. If this fails, perform one more step and make sure that you run the updater from the command line with administrator privileges.

I think that the main reason is because the installer creates another process / thread / application that for some reason does not inherit the parental rights of the administrator, and does so in a way / context that causes Windows to silently block instead of providing you invitation to privilege escalation.

0
source

I'm having trouble updating my Android SDK platform tools. What I did was launch the SDK manager as an administrator and reload the packages. After that, when I updated, it worked fine!

0
source

All Articles