码迷,mamicode.com
首页 > 编程语言 > 详细

SDK Manager failed to install 'java.exe' locking directory

时间:2014-12-10 19:33:28      阅读:321      评论:0      收藏:0      [点我收藏+]

标签:des   android   style   http   io   ar   os   sp   for   

转自:http://stackoverflow.com/questions/13587478/sdk-manager-failed-to-install-java-exe-locking-directory

I have ran into a curious error when trying to update Android SDK Tools to revision 21 from 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 cmd.exe and got this:

bubuko.com,布布扣

If I force close java.exe then obviously my SDK Manager closes.

SDK Manager Log:

bubuko.com,布布扣

This is my work computer so I‘d really like to avoid any down-time resulting from a reboot, just curious if anyone has come 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 experienced this while having 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.

share|improve this question
 
2  
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 are terrible. :( –  NateS May 11 ‘13 at 19:29

9 Answers

 

up vote 36 down vote accepted

I resolved this by copying my \tools folder, naming the copy \toolsCopy. Then I ran android.bat from the \toolsCopy folder with Administrator privileges.

Running the SDK manager from \tools locked the renaming of the \tools directory, for obvious reasons. SMH

SDK Manager failed to install 'java.exe' locking directory

标签:des   android   style   http   io   ar   os   sp   for   

原文地址:http://www.cnblogs.com/ITGirl00/p/4155961.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!