简体   繁体   中英

Android SDK Manager fails to update SDK build tools revision 18.1.1

Below is the command line result (the GUI one is very similar):

C:\Program Files (x86)\Android\android-sdk\tools>android update sdk -u -a -t 3

.... licensing stuff

Installing Archives:
  Preparing to install archives
  Downloading Android SDK Build-tools, revision 18.1.1
  URL not found: C:\Program Files (x86)\Android\android-sdk\temp\build-tools_r18.1.1-windows.zip (Access is denied)
  Done. Nothing was installed.

I didn't find anything on the web that could help. What could be the problem?

open the android Sdk folder right click on sdk manager run as administrator. select update/new install.

Open command prompt as an administrator. Elevated permissions should resolve this issue.

Source

Thanx to doydoy. It works in two ways: 1) Running SDK manager as admin 2) Command line works when CMD window with admin priveleges is used (aka elevated permissions)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM