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

Installation of Android SDK gives up after not confirming the License query 100 times.

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When using the android emulator plugin in a project, with no prior SDK installed/configured, the plugin attempts to install and setup a copy of the SDK, but gets stuck on the License acceptance screen, where it doesn't send a "y". After 100 repeats of the request to accept the license, the project run ends in failure.

        Attachments

          Activity

          Hide
          raphaeloliveira Raphael Oliveira added a comment -

          I'm having the same problem here. My question @ stackoverflow: http://stackoverflow.com/questions/16614073/android-emulator-plugin-doesnt-find-the-android-sdk

          Show
          raphaeloliveira Raphael Oliveira added a comment - I'm having the same problem here. My question @ stackoverflow: http://stackoverflow.com/questions/16614073/android-emulator-plugin-doesnt-find-the-android-sdk
          Hide
          orrc Christopher Orr added a comment -

          Hmm, a licence check on the command line is new.

          I'll take a look...

          Show
          orrc Christopher Orr added a comment - Hmm, a licence check on the command line is new. I'll take a look...
          Hide
          orrc Christopher Orr added a comment -

          Yeah, so it's required to accept the licence on the command line as of SDK Tools r22.

          However, there's supposedly an upcoming option to accept licences from the command line (though you seemingly have to know their IDs to accept them), but it's not in r22. Boo.

          https://android.googlesource.com/platform/tools/swt/+/05d8426a%5E%21/#F1

          I'll see if I can do something about this soon-ish...

          Show
          orrc Christopher Orr added a comment - Yeah, so it's required to accept the licence on the command line as of SDK Tools r22. However, there's supposedly an upcoming option to accept licences from the command line (though you seemingly have to know their IDs to accept them), but it's not in r22. Boo. https://android.googlesource.com/platform/tools/swt/+/05d8426a%5E%21/#F1 I'll see if I can do something about this soon-ish...
          Show
          orrc Christopher Orr added a comment - Related: https://github.com/jenkinsci/android-emulator-plugin/pull/22
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christopher Orr
          Path:
          src/main/java/hudson/plugins/android_emulator/SdkInstaller.java
          http://jenkins-ci.org/commit/android-emulator-plugin/cb492a4406e0b2ecec0be961b21c998567945b56
          Log:
          [FIXED JENKINS-17997] Accept licences when installing SDK components.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christopher Orr Path: src/main/java/hudson/plugins/android_emulator/SdkInstaller.java http://jenkins-ci.org/commit/android-emulator-plugin/cb492a4406e0b2ecec0be961b21c998567945b56 Log: [FIXED JENKINS-17997] Accept licences when installing SDK components.
          Hide
          orrc Christopher Orr added a comment -

          Version 2.10 of the plugin has been released, which includes this fix.

          Show
          orrc Christopher Orr added a comment - Version 2.10 of the plugin has been released, which includes this fix.

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              castaway Jess Robinson
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: