Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61614

Android emulator plugin fails when downloading SDK dependencies

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Fixed but Unreleased (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Jenkins 2.204.5, JDK 8, CentOS 8, Android Emulator Plugin 3.0
    • Similar Issues:

      Description

      During automated SDK download for android-24 target I get the following null pointer:

      $ /var/lib/jenkins/tools/android-sdk/tools/bin/sdkmanager --list --verbose
       [android] Installing the 'platform-tool,build-tools;30.0.0,extra-android-m2repository,extra-google-m2repository,emulator' SDK component(s)...
       $ /var/lib/jenkins/tools/android-sdk/tools/bin/sdkmanager --include_obsolete platform-tools build-tools;30.0.0 extras;android;m2repository extras;google;m2repository emulator
       Warning: Failed to find package build-tools;30.0.0
       [android] Failed to create file or directory: /var/lib/jenkins/.android
       [android] Determination of SDK root failed
       ['/var/lib/jenkins/tools/android-sdk']: Does not look like an Android SDK directory
      
      FATAL: null
       java.lang.NullPointerException
       at hudson.plugins.android_emulator.util.Utils.getToolCommand(Utils.java:492)
       at hudson.plugins.android_emulator.util.Utils.runAndroidTool(Utils.java:537)
       at hudson.plugins.android_emulator.util.Utils.runAndroidTool(Utils.java:530)
       at hudson.plugins.android_emulator.util.Utils.runAndroidTool(Utils.java:524)
       at hudson.plugins.android_emulator.SdkInstaller.isPlatformInstalled(SdkInstaller.java:340)
       at hudson.plugins.android_emulator.SdkInstaller.installPlatform(SdkInstaller.java:284)
       at hudson.plugins.android_emulator.SdkInstaller.installDependencies(SdkInstaller.java:261)
       at hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:294)
       at hudson.model.Build$BuildExecution.doRun(Build.java:157)
       at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
       at hudson.model.Run.execute(Run.java:1853)
       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:427)
       Finished: FAILURE
      

      Not sure if this is related to the warning about the "build-tools;30.0.0" package.

        Attachments

          Activity

          Hide
          nfalco Nikolas Falco added a comment -

          should be fixed as per JENKINS-61782

          Show
          nfalco Nikolas Falco added a comment - should be fixed as per JENKINS-61782

            People

            Assignee:
            nfalco Nikolas Falco
            Reporter:
            pevogam Plamen Dimitrov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: