代码改变世界

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

2015-12-05 09:28  shaobin0604  阅读(258)  评论(0编辑  收藏  举报
$ 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'.

参考