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

て烟熏妆下的殇ゞ 提交于 2019-11-28 19:41:14

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

It work for me after long search

  1. Close the sdk manager and eclipse.

  2. Go to the folder where you have stored your adt.

  3. In that adt folder you'll find a folder known as tools.

  4. Make a copy of the contents of that folder and paste it in a folder called copytools.

  5. Now go to the command prompt and go to the location of the copytools.

  6. Then execute the command android.bat the sdk manager will start.

  7. Now update all the plugins you want. It'll update your original folder.

  8. After the update delete the copy.

user3062384

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\

  • 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.

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

Close eclipse and try again it will work.. (After closing eclipse Android SDK Manager window will not close)

or,

Just go to task manager and end the eclipse process and try again it will work..

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/
PavanKumar

Steps to Resolve that

  1. Close the Eclipse

2.Run the SDK Manager

3.Now update the packages

It works for me

I got the same problem. Then go to temp folder extract "tools_r24.0.2-windows.zip" copy "tools" folder from extracted folder and then paste it inside "sdk" folder.(or override on tools folder) :)

100 % working...

  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. Restart your computer.

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.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!