zoukankan      html  css  js  c++  java
  • 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.

    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 ools folder, naming the copy oolsCopy. Then I ran android.bat from the oolsCopy folder with Administrator privileges.

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

    作者:Elaine
    交流QQ:392989505
  • 相关阅读:
    memcached构建集群分析之一
    linux使用getopt解析参数
    setbuffer和freopen做一个简单的日志组件
    setbuf和freopen
    编码规范的重要性
    c++的操作符格式记录
    do{...}while(0)的作用
    CF div2 321 C
    CF div2 321 B
    CF div2 321 A
  • 原文地址:https://www.cnblogs.com/ITGirl00/p/4155961.html
Copyright © 2011-2022 走看看