Reputation: 1899
I'm unable to update Android SDK tools version 21.0.1 on my Windows machine. While installing, 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 can I update SDK to latest version?
Thanks.
Upvotes: 5
Views: 5561
Reputation: 1117
i have gone through this. just follow steps. close eclipse(if open).
Upvotes: 1
Reputation:
I had problem updating android SDK platform tools. What I did is I ran the SDK manager as administrator and reloaded the packages. After that when I updated, it worked fine!
Upvotes: 0
Reputation: 6904
I'm 99% sure that you're actually seeing a UAC problem. There are multiple known scenarios where Windows Vista or 7 (and presumably 8) will allow the creation of a new file, but silently blocks modification, and returns a "file locked" error message if you try.
Try temporarily disabling UAC (remember, you have to reboot for it to take effect) and running the updater with UAC disabled. If that fails, go a step further and make sure you launch the updater from a command prompt with Administrative privileges.
I think the root cause has something to do with the installer spawning another process/thread/app that doesn't inherit the parent's admin rights for some reason, and does it in a way/context that causes Windows to silently block the action instead of presenting you with a privilege elevation prompt.
Upvotes: 0
Reputation: 11
Close the ADT, but leave the Android SDK Manager and click restart or replay
Upvotes: 0