Transferred from: http://stackoverflow.com/questions/13587478/sdk-manager-failed-to-install-java-exe-locking-directory
I have the ran into a curious error when the trying to update to from Android SDK Tools revision 21 revision 20.0.3 . The ADT plug-in updated properly so now I am at a stand still until resolved. The initial error I got listed cmd.exe & java.exe as locking the directory, I forced closed and cmd.exe got this: If I Force Close then java.exe obviously my SDK Manager closes. SDK Manager Log: This was my work computer so I ' d really like to avoid any down-time resulting from a reboot, just curious if anyone have com E across this issue and been able to resolve. I have tried closing Eclispe and running SDK Manager from the file directory, same issue, I read that someone had Experien CED this while has the directory opened so I closed and still, same issue. Any help is appreciated. Eclipse: version:3.7.2 Build id:m20120208-0800 Update: Fresh reboot did not resolve. Android Android-sdk-tools
Share|improve this question |
Edited ' at 16:23
|
Asked ' at 15:28 Asok 5,1642 |
|
|
|
Android.bat has the comment Copy android.bat and its required libs to a temp dir. This avoids locking the tool dir in case the user is trying to update it. The Android tools is terrible. :(–nates ' at 19:29 |
Add a Comment |
9 Answers Active oldest votes
Up vote vote accepted |
I resolved this by copying my \tools folder, naming the copy \toolsCopy . Then I-ran from the android.bat \toolsCopy folder with Administrator privileges. Running the SDK manager from \tools locked \tools the renaming of the directory, for obvious reasons. SMH |
SDK Manager failed to install ' Java.exe ' locking directory