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

前端 未结 14 2601
日久生厌
日久生厌 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 02:47

    For me, it worked by simply deleting the contents of the temp directory in the SDK installation folder (C:\android-sdk-tools\temp in your case)

    0 讨论(0)
  • 2020-12-05 02:53

    I encounter this problem while adding compatibility package to project in eclipse.

    I solved this issue by opening the eclipse with administrator privileges.

    In Windows 7: Right click on eclipse.exe Run as administrator.

    To make eclipse.exe to run as administrator always

    Right click on eclipse.exe --> Properties -->Compatibility tab check the Run this program as an administrator check box under Privilege Level

    0 讨论(0)
  • 2020-12-05 02:54

    I close the eclipse and run my android.bat (Path-To-YOUR-Android-SDK/tools/android.bat) from the command line.

    It works for me

    thanks

    0 讨论(0)
  • 2020-12-05 02:56

    For me who I tried all the previous solutions and didn't work I solved my problem with the following sugestion (#16) on the link: https://code.google.com/p/android/issues/detail?id=4410 which is:

    1. Find the "temp" folder and you can find the "tools_r05-windows.zip" or other files which you will update.
    2. unzip it.
    3. here you will find the "tools_r05-windows" and copy all the files in the file. which should be updated file
    4. copy to the "tools" folder.
    5. OK.
    0 讨论(0)
  • 2020-12-05 02:56

    Right click on "android-sdk" folder > properties > security > set full control permission for "ALL APPLICATION PACKAGES" and press OK, it take some minutes for sett this permission in all sub directories.

    0 讨论(0)
  • 2020-12-05 02:58

    Had the same issue with that and even tried with the copied folder. I had to run adb kill-server in the command prompt in the platform-tools directory for it to continue.

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