Android Studio 1.5启动出现“SDK Manager: failed to install”问题的解决
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 Platform Android 6.0, API 23, revision 2
Failed to rename directory C:\\Users\\jack\\AppData\\Local\\Android\\sdk\\platforms\\android-23 to C:\\Users\\jack\\AppData\\Local\\Android\\sdk\\temp\\RemotePlatformPkgInfo.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 ‘C:\\Users\\jack\\AppData\\Local\\Android\\sdk\\platforms\\android-23‘.
When ready, press YES to try again.
Note: you can use --force to override to yes.
问题分析
1,网上根据“SDK Manager: failed to install”关键词查了一下,基本都是和以前老版本相关的,不得要领。
2,Studio本身的提示是关闭杀毒程序,其实和杀毒程序无关,仍不得要领。
3,其实问题现象很明显,是C:\\Users\\jack\\AppData\\Local\\Android\\sdk\\temp这个目录不能写入,查看此目录,发现设置了“只读”属性。
问题解决
C:\\Users\\jack\\AppData\\Local\\Android\\sdk\\temp这个目录是Andriod Studio安装程序自建的,安装程序自己给自己挖了个坑,把SDK下的Temp目录设为只读,导致程序启动更新SDK要写入Temp目录时出错。
将Temp目录的只读属性去掉,Android Studio重启后SDK更新成功!
Android SDK was installed to C:\\Users\\jack\\AppData\\Local\\Android\\sdk
Installing Archives:
Preparing to install archives
Installing SDK Platform Android 6.0, API 23, revision 2
Installed SDK Platform Android 6.0, API 23, revision 2
Done. 1 package installed.
Android SDK is up to date.
Creating Android virtual device
Android virtual device Nexus_5_API_23_x86 was successfully created
以上是关于Android Studio 1.5启动出现“SDK Manager: failed to install”问题的解决的主要内容,如果未能解决你的问题,请参考以下文章
「android」Ubuntu下android studio 编译报错A problem occurred starting process 'command '/Android/Sd
Android Studio 没有链接到华为调试设备。设备可以启动,但没有出现在设备选择列表中