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

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

时间: 2024-10-18 16:28:49

SDK Manager failed to install 'java.exe' locking directory的相关文章

Android Studio 1.5启动出现“SDK Manager: failed to install”问题的解决

问题描述 Android Studio 1.5是当前最新Android手机应用开发平台,下载bundle版安装后,启动Studio后出现“SDK Manager: failed to install”问题.详细信息如下: Android SDK was installed to C:\Users\jack\AppData\Local\Android\sdk Installing Archives:  Preparing to install archives  Installing SDK Pl

Jython 在 Eclipse 控制台报错 console: Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0.

在 Eclipse 中使用 Jython 时报错 解决办法 右键 --> Run As --> Run Configurations --> Arguments --> 设置 VM arguments Jython 在 Eclipse 控制台报错 console: Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0. 原文地址:https://www.cnblogs.com/0820LL/p

jython在MyEclipse控制台出现Failed to install

1.问题 在用jython在MyEclipse中开发的时候,控制台的输出出现如下错误: console: Failed to install ": java.nio.charset.UnsupportedCharsetException: cp0. 2.解决办法 在要执行的代码上右键,Run As>Run Configurations,选择第二个页签Arguments,在VM arguments中添加: -Dpython.console.encoding=UTF-8 即可,然后Apply&

使用SDK Manager.exe无法进行更新(No system images installed for this target)

创建的AVD时,OK按钮不可用,导致无法建立AVD.原因是由于CPU/ABI选项无法选择,并显示"No system images installed for this target",也就是没有适合的系统镜像,如图所示.通过SDK Manager安装system images系统镜像之后便可创建AVD.(如果安装了"Inter x86 Atom System Image",则CPU/ABI列表选项更加丰富.) 但由于安装一些SDK包时需要访问到Google的服务器

android SDK Manager更新不了,出现错误提示:"Failed to fetch URL..."!

可以用以下办法解决: 使用SDK Manager更新时出现问题 Failed to fetch URL https://dl-ssl.google.com/android/repository/repository-6.xml, reason: Connection to https://dl-ssl.google.com refused Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.x

sdk manager.exe 闪退 解决办法!

我的sdk manager.exe 闪退 的情况如下! 如果你的情况跟我一样,应该很好解决! 进入adt-bundle-windows-x86_64-20140702\sdk\tools 找到android.bat!! 然后打开电脑cmd   把android.bat 拉进cmd  如果提示错误是如下情况: 'xcopy' 不是内部或外部命令,也不是可运行的程序或批处理文件.ERROR: SWT folder 'lib\x86_64' does not exist.Please set ANDR

安装Android SDK时,点击SDK Manager.exe闪退,并且jdk的环境变量是对的。

前提:我的jdk的环境变量是正确的,同时我的jdk还是1.7应该不是版本太低的原因,同时这个压缩文件是好的,我在其他的电脑上可以运行SDK Manager.exe. 点击SDK Manager.exe时会出现dos窗口然后窗口就关闭了.然后我在dos下运行android.bat出现了错误.出现了上面的错误 希望大家可以帮我解答,谢谢啦. 答案:先用管理员身份运行SDK Manager.exe,这时候会出现闪退,再在解压之后的SKD文件夹里搜索 android.bat , 双击运行,这时候应该就会

SDK Manager.exe闪退

运行tools文件下android.bat. 修改tools文件下android.bat文件,再运行SDK Manager.exe

Android SDK Manager - Solution to "failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-2.xml"

首先需要说明的这不是国内无法访问Google服务器的解决方案,这里说明的是在可以访问的情况下需要正确配置代理. 背景 - Win7, 使用PAC代理 浏览器可以根据PAC文件来判读对一个URL使用哪个代理.该机制是在浏览器内部起作用.当我们用Eclipse或者Android Stuidio打开SDK Manger获取更新时,该机制无法起作用. 使用的PAC文件 问题 - Android SDK Manager无法正常连接Google Failed to fetch URL http://dl-s