When Trying to install new packages/updates using Android SDK Manager, We can see some errors that “Unable to Install”. So Here are some errors I got when I got when I was trying to Install android API(s) and other package by Right Click and Run the app(Normal way).
Failed to create directory C:\Program Files(x86)\Android\Android-sdk\temp
URL not found: C:\Program Files (x86)\Android\android-sdk\temp\platform-tools_r25.0.5-windows.zip (Access is denied)
How to Fix it ?
To Fix the error and Install the packages, what we have to do is Run the Android SDK Manager as Administrator..
First, go to C:\Program Files (x86)\Android\android-sdk and select SDK Manager.exe.
Then Right Click and Run As Administrator.
Instead of Running as Administrator by going to Program Files, You can Open Android SDK manager using Visual Studio.
It will run the Android SDK Manager as Administrator itself.
Click the … Tools -> Android -> Android SDK Manager