Can't update \tools - Android SDK Command Line Tools for Windows Can't update \tools - Android SDK Command Line Tools for Windows android android

Can't update \tools - Android SDK Command Line Tools for Windows


Yeah that's quite funny. A way to do that is to copy the tools folder to another place (let's say C:\temp\). Then direct into the C:\temp\tools\bin\, open the cmd prompt there and run your update commands as such:

sdkmanager.bat --sdk_root=sdkRootPath --command

Where sdkRootPath is path to your original SDK folder (C:\testinstall\sdk\). Once that is done, delete the C:\temp\tools\ copied folder.


You could temporarily rename to tools.old, run it to install new version in tools and then remove the old one.

cd YOUR-ANDROID-SDK-LOCATIONren tools tools.oldtools.old\bin\sdkmanager.bat "tools"dir tools*del tools.old /q /stools\bin\sdkmanager.bat --list


it might be permission issue.Can you try doing sudo or if you on windows try to run terminal as administrator.

I have seen issues where the program is not able to delete the folder either due to lock or some weird reason.