如何通过命令行在Linux中更新Android SDK

是否有ubuntu命令行命令来更新我的 Android API,我需要下载android-19

注意:我只使用ubuntu命令行,没有GUI.

谢谢,

解决方法

documentation

Starting with Tools R12,the SDK Manager offers a slightly better way
to update the SDK from command-line.

Previously the “android update sdk --no-ui” command already allowed
one to update from the command-line,but it had the annoying tendency
of installing every single platform or add-on. There are now 30 or
more packages available on the SDK repository,including 12 platforms;
that’s a lot to download when most people only need the most recent
platform. Starting with R12,you can use combine new things:

  • android list sdk” will connect to the remote repository and list all the
    packages available with an index number.

  • android update sdk --no-ui
    accepts a “--filter” argument that can take a package index,or a
    category name.

Here’s an example in action:

There’s still room for improvement,notably in a future release we’ll work on the first install case and making the update smarter at figuring out what to get.

相关文章

/etc/sysctl.conf这个目录主要是配置一些系统信息,/etc/sys...
1.作用 useradd或adduser命令用来建立用户帐号和创建用户的起...
它们都是多模式编辑器,不同的是vim 是vi的升级版本,它不仅...
不管是我们在安装软件还是监测软件的使用性能,我们都要随时...
装好Tomcat7后,发现除了本机能访问外界访问不了,岂有此理。...
修改防火墙配置需要修改 /etc/sysconfig/iptables 这个文件,...