Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

android

sdk

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 C:\android-sdk-windows\temp\ToolPackage.old01.

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?

like image 207
Regex Rookie Avatar asked Jan 12 '12 17:01

Regex Rookie


People also ask

Where is the Android SDK folder windows?

by default, the "Android Studio IDE" will be installed in " C:\Program Files\Android\Android Studio ", and the "Android SDK" in " c:\Users\username\AppData\Local\Android\Sdk ".

How do I fix SDK Tools folder is missing?

Quick fix: Go to the Tools –> SDK manager –> SDK tools. Deselect Hide obsolete packages option on the right bottom and further install Android SDK Tools(obsolete). A new folder named Tools is now generated in the SDK directory.

Can I delete Android SDK folder?

If you don't use emulator then you can delete this folder.


1 Answers

This is how I fixed it in Windows 7:

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.

like image 115
Will Tate Avatar answered Sep 21 '22 16:09

Will Tate