Details

    • Similar Issues:

      Description

      When installing and updating the Android SDK, the installation fails, because an obsolete flat (-o) is used. I think it should use --all.

      Here's a log:

      [android] Searching for Android projects...
      [android] Project file 'project.properties' requires platform 'android-15'
      [android] No Android SDK found; let's install it automatically...
      Downloading and installing Android SDK from http://dl.google.com/android/android-sdk_r21.0.1-macosx.zip
      [android] Base SDK installed successfully
      [android] Going to install required Android SDK components...
      [android] Installing the 'platform-tool,tool' SDK component(s)...
      $ /Users/hugo/Code/jenkins/slave/tools/android-sdk/tools/android update sdk -u -o -t platform-tool,tool
      Error: Flag '-o' is not valid for 'update sdk'.

      Usage:
      android [global options] update 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 "update sdk":
      Updates the SDK by suggesting new platforms to install if available.
      Options:
      --proxy-port: HTTP/HTTPS proxy port (overrides settings if defined)
      --proxy-host: HTTP/HTTPS proxy host (overrides settings if defined)
      -s --no-https : Uses HTTP instead of HTTPS (the default) for downloads.
      -a --all : Includes all packages (such as obsolete and non-dependent
      ones.)
      -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)
      -p --obsolete : Deprecated. Please use --all instead.
      -t --filter : A filter that limits the update to the specified types of
      packages 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'.
      -n --dry-mode : Simulates the update but does not download or install
      anything.
      [android] Android SDK installation failed
      Build step 'Install Android project prerequisites' marked build as failure
      Archiving artifacts
      Finished: FAILURE

        Attachments

          Activity

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              botteaap Hugo Visser
            • Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: