我尝试更新android studio中的5.0版布局库,但下载结束时返回此错误:
Loading SDK information...
Refresh Sources:
Fetched Add-ons List successfully
Refresh Sources
Installing Archives:
Preparing to install archives
Installing SDK Platform Android 5.0.1, API 21, revision 2
Failed to rename directory E:\Android\SDK\platforms\android-21 to
:\Android\SDK\temp\PlatformPackage.old01.
SDK Manager: failed to install
-= Warning ! =-
A folder failed to be moved. On Windows this typically means that a program
is using that folder (for example Windows Explorer or your anti-virus software.)
Please momentarily deactivate your anti-virus software or close any running programs that may be accessing the directory 'E:\Android\SDK\platforms\android-21'.
When ready, press YES to try again.
Note: you can use --force to override to yes.
[y/n] =>
Done. Nothing was installed.
然后我尝试输入 y
字符,禁用防病毒并检查互联网连接,但无法解决问题!
什么是解决方案!?
答案 0 :(得分:1)
确定
最后我解决了!
关闭所有相关和使用SDK
文件夹的程序。(确保,禁用防病毒,甚至AVD,Genymotion和......)
此路径:菜单--->档案--->使缓存无效/重新启动
再次尝试下载 - 但这次只需解压缩下载的包(不再下载)
答案 1 :(得分:0)
可能的解决方案
似乎是一个错误。
我去了偏好设置 - > HTTP代理将选项设置为" No Proxy"来自"自动检测代理设置"
答案 2 :(得分:0)
您的E:\ Android路径是否安装了Android Studio? SDK无法在Android Studio路径中