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

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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • Debian linux unstable, Jenkins 1.480.3+dfsg-1~exp2

      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.

          [JENKINS-17997] Installation of Android SDK gives up after not confirming the License query 100 times.

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

          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

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

          I'll take a look...

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

          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...

          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...

          Christopher Orr added a comment - Related: https://github.com/jenkinsci/android-emulator-plugin/pull/22

          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.

          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.

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

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

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

              Created:
              Updated:
              Resolved: