如何通过命令行在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.

相关文章

在Linux上编写运行C语言程序,经常会遇到程序崩溃、卡死等异...
git使用小结很多人可能和我一样,起初对git是一无所知的。我...
1. 操作系统环境、安装包准备 宿主机:Max OSX 10.10.5 虚拟...
因为业务系统需求,需要对web服务作nginx代理,在不断的尝试...
Linux模块机制浅析 Linux允许用户通过插入模块,实现干预内核...
一、Hadoop HA的Web页面访问 Hadoop开启HA后,会同时存在两个...