|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

I was trying to update to the latest tools version so I could then run API 17 on Jekins. I experienced the same issue. Our set up is - OpenIndiana master, with a Linux slave where the sdk lives.
Here is our log message:
[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-linux.tgz
[android] Base SDK installed successfully
[android] Going to install required Android SDK components...
[android] Installing the 'platform-tool,tool' SDK component(s)...
$ /home/jenkins/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.
ERROR: Processing failed due to a bug in the code. Please report this to [email protected]
java.lang.NullPointerException
at hudson.plugins.android_emulator.util.Utils.getToolCommand(Utils.java:369)
at hudson.plugins.android_emulator.util.Utils.runAndroidTool(Utils.java:413)
at hudson.plugins.android_emulator.util.Utils.runAndroidTool(Utils.java:406)
at hudson.plugins.android_emulator.SdkInstaller.isPlatformInstalled(SdkInstaller.java:258)
at hudson.plugins.android_emulator.SdkInstaller.installPlatform(SdkInstaller.java:205)
at hudson.plugins.android_emulator.SdkInstaller.installPlatform(SdkInstaller.java:190)
at hudson.plugins.android_emulator.SdkInstaller.installDependencies(SdkInstaller.java:177)
at hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:250)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:600)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:580)
at hudson.model.Run.execute(Run.java:1575)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:237)
project=hudson.maven.MavenModuleSet@1a42f7f[absio-android-IT-4.2]
project.getModules()=[]
project.getRootModule()=null
FATAL: null
java.lang.NullPointerException
at hudson.plugins.android_emulator.util.Utils.getToolCommand(Utils.java:369)
at hudson.plugins.android_emulator.util.Utils.runAndroidTool(Utils.java:413)
at hudson.plugins.android_emulator.util.Utils.runAndroidTool(Utils.java:406)
at hudson.plugins.android_emulator.SdkInstaller.isPlatformInstalled(SdkInstaller.java:258)
at hudson.plugins.android_emulator.SdkInstaller.installPlatform(SdkInstaller.java:205)
at hudson.plugins.android_emulator.SdkInstaller.installPlatform(SdkInstaller.java:190)
at hudson.plugins.android_emulator.SdkInstaller.installDependencies(SdkInstaller.java:177)
at hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:250)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:600)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:580)
at hudson.model.Run.execute(Run.java:1575)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:237)