@act262
2017-01-22T04:23:28.000000Z
字数 2748
阅读 1896
Android_SDK
打开Android SDK Manager图形界面
android sdk
获取sdk列表信息:得到数字序号filterNum
android list sdk
更新指定版本的sdk: -u 无界面(在无桌面环境的*unix系统下常用到)
android updaet sdk -u -t filterNumandroid update sdk -u -t 7
C:\Users\Admin>android helpError: Expected verb after global parameters but found 'help' instead.Usage:android [global options] action [action options]Global options:-s --silent : Silent mode, shows errors only.-v --verbose : Verbose mode, shows errors, warnings and all messages.--clear-cache: Clear the SDK Manager repository manifest cache.-h --help : Help on a specific command.Validactionsarecomposedof a verband anoptionaldirectobject:- sdk : Displays the SDK Manager window.- avd : Displays the AVD Manager window.- list : Lists existing targets or virtual devices.- list avd : Lists existing Android Virtual Devices.- list target : Lists existing targets.- list device : Lists existing devices.- list sdk : Lists remote SDK repository.- create avd : Creates a new Android Virtual Device.- move avd : Moves or renames an Android Virtual Device.- delete avd : Deletes an Android Virtual Device.- update avd : Updates an Android Virtual Device to match the foldersof a new SDK.- create project : Creates a new Android project.- update project : Updates an Android project (must already have anAndroidManifest.xml).- create test-project : Creates a new Android project for a test package.- update test-project : Updates the Android project for a test package (mustalready have an AndroidManifest.xml).- create lib-project : Creates a new Android library project.- update lib-project : Updates an Android library project (must already havean AndroidManifest.xml).- create uitest-project: Creates a new UI test project.- update adb : Updates adb to support the USB devices declared in theSDK add-ons.- update sdk : Updates the SDK by suggesting new platforms to installif available.C:\Users\Admin>android update sdk -helpError: Flag '-help' is not valid for 'update sdk'.Usage:android [global options] update sdk [action options]Global options:-s --silent : Silent mode, shows errors only.-v --verbose : Verbose mode, shows errors, warnings and all messages.--clear-cache: Clear the SDK Manager repository manifest cache.-h --help : Help on a specific command.Action "update sdk":Updates the SDK by suggesting new platforms to install if available.Options:-f --force : Forces replacement of a package or its parts, even ifsomething has been modified.-n --dry-mode : Simulates the update but does not download or installanything.--proxy-host: HTTP/HTTPS proxy host (overrides settings if defined)-s --no-https : Uses HTTP instead of HTTPS (the default) for downloads.-t --filter : A filter that limits the update to the specified types ofpackages 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'.-u --no-ui : Updates from command-line (does not display the GUI)--proxy-port: HTTP/HTTPS proxy port (overrides settings if defined)-p --obsolete : Deprecated. Please use --all instead.-a --all : Includes all packages (such as obsolete and non-dependentones.)