This is a hack which I used a long time ago.
- In the Android Studio find
Tools > Android > SDK Manager > SDK Update Sites
.
- Click the + icon
Path 1-
- Instead of the url put your folder path
Warning: This mostly doesn't work
Path 2-
- Install XAMPP
- Write this in an XML. For customizing XML you can take help from here for add-on SDK and here for essential SDK
Note: This snippet is for Add-On SDK
<addon:sdk-addon>
<remotePackage obsolete="false" path="add-ons;addon">
<type-details xsi:type="addon:addonDetailsType">
<api-level>3</api-level>
<codename/>
<vendor>
<id>google</id>
<display>Google Inc.</display>
</vendor>
<tag>
<id>google_apis</id>
<display>Google APIs</display>
</tag>
<libraries>
<library localJarPath="maps.jar" name="com.google.android.maps">
<description>****Put*fully*qualified*name*here****</description>
</library>
</libraries>
</type-details>
<revision>
<major>3</major>
</revision>
<display-name>Google APIs</display-name>
<uses-license ref="android-sdk-license"/>
<channelRef ref="channel-0"/>
<archives>
<archive><!--Built on: Wed Nov 8 11:07:05 2017.-->
<complete>
<size>34908058</size>
<checksum>CHANGE_THIS_CHECKSUM</checksum>
<url>YOUR_FILENAME_GOES_HERE.zip</url>
</complete>
</archive>
</archives>
</remotePackage>
</addon:sdk-addon>
- Now start XAMPP and run apache. Make sure you have set the directories correctly. Your directory must have the XML file
- Put the URL, probably something like
localhost:8000/<YOUR_XML_FILENAME>.xml
, of this file after clicking the + sign
I used this quite a while ago.
EDIT: I re-read your question and I didn't see very necessay part. By that I am guessing it is one of the Android SDK Tool. In your case your ****Put*fully*qualified*name*here****
might be "Android SDK Tools".
Also, the XML I wrote was for add-on SDKs. By the nature of your question you should edit the XML using essential SDK XML
I found a similar SOF QnA which you can look into