Problem description
Android Studio 1.5 is currently the latest Android mobile app development platform, after downloading the bundle version installed, the "SDK manager:failed to install" issue appears after starting Studio. Detailed information is as follows:
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 Revision 2
Failed to rename directory C:\Users\jack\AppData\Local\A Ndroid\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 the windows this typically means, a program was using that folder (for example Windows Explorer or your anti-virus softw Is.)
Please momentarily deactivate your anti-virus software or close any running programs so may be accessing the Directo Ry ' 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.
Problem analysis
1, online according to the "SDK manager:failed to install" keyword search, basic is and old version of the relevant, not to be.
2,studio itself tip is to turn off the antivirus program, in fact, and anti-virus programs, still no avail.
3, in fact, the problem is obvious, is C:\Users\jack\AppData\Local\Android\sdk\temp This directory can not be written to view this directory, found that the "read-only" property is set.
Problem solving
C:\Users\jack\AppData\Local\Android\sdk\temp This directory is self-built by Andriod Studio Installer, the installer itself dug a hole for itself, the SDK under the Temp directory is set to read-only, Error causing the program to start updating the SDK to write to the temp directory.
Remove the read-only attribute from the temp directory and the SDK update succeeds after Android studio restarts!
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 2, Revision
installed SDK Platform Android 6.0, API 2, Revision
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
98
Android Studio 1.5 Launches the "SDK manager:failed to install" issue resolution