android 命令在 ANDROID_HOME/tools/

android list sdk --all

And then to get one of the packages in that list from the command line, use:

android update sdk -u -a -t

Where -u stands for --no-ui, -a stands for --all and -t stands for --filter.

If you need to install multiple packages do:

android update sdk -u -a -t 1,2,3,4,..,n

Where 1,2,..,n is the package number listed with the list command above

标签: none

评论已关闭