I'm on a windows 8 os and trying to install android sdk from the cli. so far, I've downloaded all the essential tools listed here https://developer.android.com/studio/command-line/index.html along with platforms for android 7.1 and 8.0. I can't get the 901mb package directly from android studio for lack of enough bandwidth.
The instruction here https://androidsdkoffline.blogspot.com.ng/p/android-sdk-tools.html says android update sdk -t -u tools
which I've done but it complains
Unrecognized argument "tools"
When I run only android update sdk
, it tries downloading a bunch of xml files
Invoking "C:\Program Files\Android\Android Studio\Sdk\tools\bin\sdkmanager" --update Warning: Failed to connect to host: https://dl.google.com/android/repository/add ons_list-3.xml Warning: Failed to connect to host: https://dl.google.com/android/repository/add ons_list-2.xml Warning: Failed to connect to host: https://dl.google.com/android/repository/add ons_list-1.xml Warning: Failed to download any source lists! Warning: java.net.UnknownHostException: dl.google.com done
Which I've observed already exists in this folder "C:\Users\<username>\.android\cache"
. But even if it didn't there's no need to redownload those sdk tools when I already have them--I just need to point it to them.
I've tried adding the folders to my environment path variables list but it still has no effect. I noticed I have no build.gradle and idk where to get one. The commands on the sdkmanager page offer no help besides that dumb default behaviour of grabbing dependencies online at costly sizes, without regard to bandwidth costs of the developer. Is there some file I can tweak or some command I can run to intimate the sdk or android that these components it's looking for are right under its nose? I'm looking at a solution that may cause the sdkmanager to try to update from the internet as usual then resort to the local disk when it finds no internet connection; since I have the following folders in this directory "C:\Program Files\Android\Android Studio\Sdk": emulator, build-tools, platform-26_r01, android-7.1.1, tools, platform-tools, extras, licenses, patcher.
I also have the intel virtualization whatever dealt with (BIOS and co.), so someone kindly help me with the last piece of the puzzle. Many thanks!!
EDIT: I am seeing inconsistencies on blogs concerning this topic--some referring to C:\Program Files\Android\Android-Studio\Sdk and others to C:\Users\\AppData\Local\Android\Sdk . I'm currently operating from the latter since most sites used it but just to be safe, is there any difference between both?