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

前端 未结 14 2602
日久生厌
日久生厌 2020-12-05 02:14

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 t

相关标签:
14条回答
  • 2020-12-05 03:01

    I ran into the same problem.

    Most probably, you have a project opened in Eclipse (or android studio), and this project uses files that the SDK manager is trying to access or update.

    So, the project is reading from some SDK platform folders/files, and the SDK manager is trying to overwrite it at the same time (for updating).

    This is why you do not have permissions, not because you are not administrator.

    Try closing Eclipse, click 'YES' in the SDK manager warning message (or re-run SDK manager again while Eclipse is not running).

    0 讨论(0)
  • 2020-12-05 03:04

    For anyone who is having this issue on OS X, sudo chown -R $USER worked for me (on your android-sdk directory).

    0 讨论(0)
  • 2020-12-05 03:04

    i have another solution, that helped me. 1. When you got error message in SDK Manager, copy zip file (name contains version and 'tools' word) from sdk/temp folder; 2. Exit from SDK Manager; 3. Unzip archive from first item, you got new tools, and replace sdk/tools with new one; 4. Clean sdk/temp folder;

    0 讨论(0)
  • 2020-12-05 03:05

    For me this problem was solved by running SDK Manager with administrator privileges

    0 讨论(0)
  • 2020-12-05 03:07

    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.

    0 讨论(0)
  • 2020-12-05 03:07

    You can run SDK Manager outside eclipse directly from the androidSDK directory.

    0 讨论(0)
提交回复
热议问题