• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Elaine00
博客园    首页    新随笔    联系   管理    订阅  订阅

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

转自: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:

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

SDK Manager Log:

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.

android android-sdk-tools
share|improve this question
edited Nov 27 '12 at 16:23
 

asked Nov 27 '12 at 15:28
Asok
5,16421742
 
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
add a comment

9 Answers

active oldest votes

 

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

作者:Elaine
出处:http://www.cnblogs.com/ITGirl00/
交流QQ:392989505
posted @ 2014-12-10 17:30  Elaine00  阅读(428)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3