SORU
13 Ocak 2011, PERŞEMBE


Bir şekilde android sdk otomatik yüklemeyi var mı?

Şimdi abd ve Android SDK AVD Manager indirmek ve yüklemek, ve UI aracılığıyla API, araçlar yükleyin. Bir şekilde bu işlemi otomatik hale getirmek için var mı?

CEVAP
13 Ocak 2011, PERŞEMBE


Yakın otomasyon alabilirsiniz muhtemelen

$ android update sdk --no-ui

android için Otomatik Güncelleştirmeler: bu seçenek bulunur

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 if something has been modified
  -u --no-ui    Updates from command-line (does not display the GUI)
  -o --obsolete Installs obsolete packages
  -t --filter   A filter that limits the update to the specified types of packages in the form of
                a comma-separated list of [platform, tool, platform-tool, doc, sample, extra]
  -s --no-https Uses HTTP instead of HTTPS (the default) for downloads
  -n --dry-mode Simulates the update but does not download or install anything

Eğer yükleme için kullanılabilir olan liste kullanabilirsiniz

$ android list sdk

ve paketleri sıralı bir liste elde edersiniz

Packages available for installation or update: 9
   1- ARM EABI v7a System Image, Android API 15, revision 2
   2- Intel x86 Atom System Image, Android API 15, revision 1
   3- Android Support, revision 8
   4- Google AdMob Ads SDK, revision 6
   5- Google Analytics SDK, revision 2
   6- Google Play APK Expansion Library, revision 1
   7- Google Play Billing Library, revision 2
   8- Google Play Licensing Library, revision 2
   9- Google Web Driver, revision 2

Ayrıca eğer --filter seçeneği kullanmak istediğiniz her bir bileşeni için Güncelleştirme sınırlayabilirsiniz

$ android update sdk --filter <component> --no-ui

bileşen bir veya daha fazla olduğu

  • numaraları android list sdk (yani . tarafından döndürülen ^strong>1da biliyorpaket dizin)
  • add-on
  • doc
  • ekstra
  • platform
  • platform aracı
  • örnek
  • kaynak
  • sistem görüntü
  • aracı

ya da daha özel bir tanımlayıcı olabilir. Eğer sadece belirli paketler için küçük bir set indirmek istiyorsanız örneğin, bunu yapabilirsiniz:

$ android update sdk -u --filter platform-tools,android-16,extra-android-support

ve sadece platform araçları, Düzey 16 apı ve paket jar destek olacak. Bu sadece bir makine inşa bina Eğer gerçekten kullanışlı ve asla kullanmayacağın bir sürü ekstra şey indirmek için ödemek zorunda kalacak.

Kullanılabilir seçenekleri görmek için yardım, örneğin kullanabilirsiniz

$ android --help list sdk

       Usage:
       android [global options] list sdk [action options]
       Global options:
  -h --help       : Help on a specific command.
  -v --verbose    : Verbose mode, shows errors, warnings and all messages.
     --clear-cache: Clear the SDK Manager repository manifest cache.
  -s --silent     : Silent mode, shows errors only.

                   Action "list sdk":
  Lists remote SDK repository.
Options:
  -o --obsolete  : Deprecated. Please use --all instead.
  -a --all       : Lists all available packages (including obsolete and
                   installed ones)
     --proxy-host: HTTP/HTTPS proxy host (overrides settings if defined)
     --proxy-port: HTTP/HTTPS proxy port (overrides settings if defined)
  -s --no-https  : Uses HTTP instead of HTTPS (the default) for downloads.
  -e --extended  : Displays extended details on each package
  -u --no-ui     : Displays list result on console (no GUI) [Default: true]

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • InfoPuppet

    InfoPuppet

    15 Kasım 2011
  • Justin Schenck

    Justin Schen

    24 Kasım 2006
  • bored before i even began

    bored before

    30 Mart 2009