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.
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?
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 ".
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.
If you don't use emulator then you can delete this folder.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With