Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
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
Hmm. I fixed this about a year ago when SDK Tools r17 came out:
https://github.com/jenkinsci/android-emulator-plugin/commit/4a1fee5
I couldn't reproduce this just now with the plugin installing the SDK.
I did once see a bug where `sdk.getSdkToolsVersion()` returned the wrong value, but I fixed that recently (I believe).
And from your log it seems that the plugin is using the just-installed SDK as expected, so I'm not sure what's going wrong there..
I guess you're using the latest plugin version (plus the Serializable fix), on OS X.
Do you have another Android SDK configured in the global Jenkins properties, an Android SDK in your PATH, ANDROID_HOME etc.?