Regex Rookie Regex Rookie - 6 months ago 99
Android Question

Failed to rename directory tools to temp\ToolPackage.old01 in C:\android-sdk-windows

When trying to upgrade Android SDK Tools to revision 16, I am getting the following error:

Failed to rename directory C:\android-sdk-windows\tools to

Done. Nothing was installed.

enter image description here

Nothing I try to do, including providing FULL permissions (in addition to the special permissions it already had) to Administrator, helps.

Also, I don't know of anything that is accessing those directories.

How do I fix this problem?


Make a copy of the \tools folder, name it something like \copy. So you should have c:\android-sdk-windows\copy. Now run android.bat from the \copy folder with Admin privileges. This should prevent the issue with items currently being open in the \tools folder.