The following processes: -cmd.exe -java.exe are locking the following directory:
Solution 1
just go this dir:
C:\Program Files (x86)\Android\Android SDK\temp
and cut every thing was there then paste it in a new folder..
Run the Update again..
Solution 2
I did better went to sdk/temp and found out
tools_r22.6.3-windows.zip
which was downloaded but not installed
i just extracted the zip and replaced tools in \sdk\tools
note : exit eclipse and sdk manager , delete the old TOOLS folder rater than replacing it.
Solution 3
I got the same problem. Then I downoaded latest SDK (only the SDK. no need to download android platforms).
There's a folder call "tools" in "android-sdk" folder. I replaced the previous "tools" folder with newly downoaded "tools" folder. So far it's working in Eclipse.
Solution 4
What worked for me is changing the name of the folder specified (C:\Program Files (x86)\Android\android-sdk\tools). After changing the name of the folder i opened android studio. next i went into the tools folder that i renamed and ran the android.bat file. this opened up the manager and allowed me to install no problem. A new tools folder will be created and used im assuming its safe to delete the old one that was renamed.
Sherif El Nady
I'm a Product Owner who is passionate about software Android and development. Throughout my career, I've been working on variety of projects that have helped me enhance my technical skills and made me more flexible. My aim is to be part of a fast paced team environment where I can utilize my technical expertise, creativity and knowledge to solve problems in a smart way
Updated on July 09, 2022Comments
-
Sherif El Nady almost 2 years
I am installing 2.3.3 android API and i got this error:
Warning: The following processes: -cmd.exe -java.exe are locking the following directory: C:\Program Files (x86)\Android\android-sdk\tools
Any help??
-
kleopatra over 10 yearshmm .. nothing new compared to an earlier answer, is there?
-
Jeffy Lazar over 10 yearsfor hours i was trying the solution and finally got it working bcoz of this answer...... someone please accept the answer...
-
Josh Durham about 10 yearsYou have repeated what several other people have already said.
-
Mafro34 almost 10 yearsI extracted the .zip in temp and pasted all its contents into tools folder (after closing cmd) this sorted me out.
-
Adam Fili almost 10 yearsanother possible location if you are using android studio is: C:\Users\<username>\AppData\Local\Android\android-studio\sdk\temp
-
chinthana over 9 yearsIf you can't find AppData folder, type it on the address bar, because it's hidden by default :)