参考:https://developer.android.google.cn/studio/command-line/sdkmanager

1
2
3
4
# bin/sdkmanager --proxy=http --proxy_host=192.168.16.28 --proxy_port=8118 --list
# bin/sdkmanager --proxy=http --proxy_host=192.168.16.28 --proxy_port=8118 --sdk_root=/data/Android/Android-Sdk "build-tools;29.0.2"
# bin/sdkmanager --proxy=http --proxy_host=192.168.16.28 --proxy_port=8118 --sdk_root=/data/Android/Android-Sdk "platforms;android-28" "platforms;android-29"
# bin/sdkmanager --proxy=http --proxy_host=192.168.16.28 --proxy_port=8118 --sdk_root=/data/Android/Android-Sdk "extras;android;m2repository"
 转自:https://www.appblog.cn/2019/10/25/Android%20sdkmanager%20%E4%BB%A3%E7%90%86%E9%85%8D%E7%BD%AE/