Monday, August 15, 2011

Android SDK update issue: "Folder failed to be renamed or moved on SDK install"

Recently while i was updating my Android SDK, I faced some issues and I was not able to update the sdk.The AVD managr was displaying the below error message.

-= Warning ! =-
A folder failed to be renamed or moved. On Windows this typically means that a program is using that folder (for example Windows Explorer.) Please close all running programs that may be locking the directory.

So I did the next natural step for such cases i.e googling for the error and foud that this issue is faced by many people recently and the same issue is logged in code.google.com also.URL for the same is:-
http://code.google.com/p/android/issues/detail?id=4410#makechanges

In the above page different people has recomended different solutions for the above issue.I am listing down all the solutions below (and yes, the one which worked for me.)

1.Might be an issue with anti-virus.Disable it and try again.
(didn't work for me)
2.If no antivirus software running and still get the error message, try
to delete the temp folder itself and run the update again. Worked for some people.
(didn't work for me)
3. Check if "adb.exe" is running as an independent process (normally when an android device is plugged-in).Unplugged the device and try. (not my case as no device was plugged-in)
4. Make a copy of the tools folder itself (keeping it at the same directory tree level, thus "tools" and "tools-copy" were both in the "android-sdk-windows" folder).
- Run Android.bat from that copy folder.
- Closed the SDK and , delete the folder (kill the adb.exe process first as you can't delete the folder without doing that).
- Restar the SDK from the normal (now-updated) tools folder.
(didn't try this option because of it's complexity...should have been the last one to try)
5. In the "temp" present inside "Android-Sdk-Windows" folder you can find the "tools_r12-windows.zip" or other files which you will update.
-Unzip it and copy all the files in the file the "tools" folder.
(This one works for me)

There are some other solutions mentioned also I didn't look at them as my problem was solved by that time and couldn't wait more to explore android 3.2 version.

1 comment: