Updating Android SDK: “A folder failed to be moved.”

前端 未结 25 1796
面向向阳花
面向向阳花 2020-12-07 10:29

While trying to update my Android SDK I am encountering this error when trying to install this particular package:

相关标签:
25条回答
  • 2020-12-07 10:55

    I've read before, people take a copy of the platform-tools folder and run the update from a different location. This ensures you haven't got open the files it's trying to update.

    Could also disable your antivirus for 5 minutes o0o0.

    0 讨论(0)
  • 2020-12-07 11:00

    When you install tools/softwares use SDK manager. But don't use it when update. Do right click -> Run as administrator on android-sdk-windows\tools\android.bat file for updating tools. Always try to run commands as Administrator specially on Windows Vista/7/8. That'll fix most of permission issues etc...

    0 讨论(0)
  • 2020-12-07 11:00

    My problem was Windows 7 security. I opened up the security on C:\Program Files\Android to EVERYONE with FULL access and it then worked. I then removed EVERYONE after the update was complete.

    0 讨论(0)
  • 2020-12-07 11:00

    Same error i got while updating sdk. It is because of targeted folder locked (access permission is denied). You can resolve it as follows in "Ubuntu" :-

    Press ALT + F2 and type 'gksudo nautilus' and navigate to the targeted folder like tools or extras and give create and delete permission. then update, every thing will be working fine :)

    0 讨论(0)
  • 2020-12-07 11:01

    I tried running android.bat and got the same error.

    What worked for me was using unlocker to unlock the \tools folder.

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

    well i had the same issue on windows 7 ... problem is that during the update it tries to rename the tools folder (inside the SDK folder) and that folder is used by a process "ADB" which is currently running ...

    so you cannot do the update smoothly until you stop / kill that process ...

    BTW copy pasting the new contents of tools folder from the temp would also work ...

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