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

前端 未结 12 1996
春和景丽
春和景丽 2020-12-14 04:27

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 p

相关标签:
12条回答
  • 2020-12-14 04:50

    If you install SDK with eclipse in execution this error will go occur. For you resolve this problem, you should have stop the eclipse application.

    0 讨论(0)
  • 2020-12-14 04:51

    I got mine working by going into the android-sdk\temp folder and extracting the tools_r22.3-windows.zip and renaming the current tools folder to tools123 and moved the extracted tools folder to \android-sdk\

    0 讨论(0)
  • 2020-12-14 04:54

    IF USING ANDROID BUNDLE

    close the SDK manager and eclipse. From the SDK folder in bundle goto tools. Copy all files of the tools folder to another folder named toolscopy. Now in cmd navigate to SDK folder then to toolscopy and execute "android.bat". Now the SDK manager will execute and you can update all your updates. you can delete the toolscopy folder as the tools folder will automatically get updatesd :D

    0 讨论(0)
  • 2020-12-14 05:00

    I solved it in a very simple way, worked well for me.

    1. close eclipse.exe
    2. go to your directory containing android-sdks
    3. run SDK Manager.exe
    4. install required packages
    5. close sdk Manager.exe
    6. Start eclipse and you are almost there
    7. update your ADT plugins by visiting Help menu in eclipse and then Check for Updates
    8. in case if it doesn't (which it didn't in my case remove the old versions of plugins manually) work and install them again from https://dl-ssl.google.com/android/eclipse/
    0 讨论(0)
  • 2020-12-14 05:01

    I solved this using "unlocker" by emptyloop to unlock the directory without having to kill java.exe using the task manager.

    0 讨论(0)
  • 2020-12-14 05:07
    • Close command line & explorer (whatever is blocking java.exe)
    • Cut all files & folders from temp folder (android-sdk\temp)
    • Paste it to some other folder say (temp_old)
    • Run cmd.exe (Run as administrator) and start the process again.
    • If still it doesn't work, manually copy tools directory to temp folder & check.
    0 讨论(0)
提交回复
热议问题