[Android Tips] 16. Update Android SDK from command-line

$ cd $ANROID_HOME
$ tools/android update sdk -u -s

参数

-s --no-https  : Uses HTTP instead of HTTPS (the default) for downloads.
-u --no-ui     : Displays list result on console (no GUI) [Default: true]
-t --filter    : A filter that limits the update to the specified types of
                 packages in the form of a comma-separated list of
                 [platform, system-image, tool, platform-tool, doc, sample,
                 source]. This also accepts the identifiers returned by
                 'list sdk --extended'.

参考

原文地址:https://www.cnblogs.com/shaobin0604/p/5021016.html