可能问题1:在Eclipse里启动SDK Manager的看这里
The program that is using that folder is Eclipse itself. So using the Android SDK manager and launching it from Eclipse creates an situation where the SDK Manager tries to update a folder that Eclipse is using. When you shut down Eclipse...you shut down the Android SDK manager. So you get stuck in an endless and silly situation.
To solve this:
- Close Eclipse and don't ever update the Android SDK from Eclipse again.
- Navigate to where your Android SDK is installed, and then launch it from there by double clicking: SDK Manager.exe
- Once you do this you can now download and install all updates needed without having Eclipse open.
你弹出的窗口提示eclipse.exe locking the following directory,说明你打开的eclipse正在使用该目录,原因是eclipse需要持续地重启adb.exe,即使杀掉该进程,ADB仍然使用该文件夹。
解决方法:关闭eclipse,直接在sdk文件夹下找到SDK Manager并运行它。
可能问题2:win7用户看这里
以管理员身份运行Eclipse或SDK Manager.exe
可能问题3:上述方法试过无效看这里
I got that message once because I had an explorer window open to that directory. If it isn't antivirus, then try having the sdk manager as your only open window. If that fails, then open task manager and end every process that could be using it. If that fails, then something is probably wrong with your computer.
有应用程序或服务占用该目录:尝试关闭所有浏览器,关闭杀毒软件,打开任务管理器,关闭所有可能占用该目录的应用进程,重新按照可能问题1方法运行。