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

Android Emulator Plugin doesn't work with Build Tools 25.3.0 (03/2017)

    Details

    • Similar Issues:

      Description

      On Build Tools 25.3.0 Google removed the command "android" which throws out

      The android command is no longer available. For manual SDK and AVD management, please use Android Studio. For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager

      so "android create avd" doesnt work anymore. The plugin seems to be using it to create the emulators. Every build fails with

      "Could not create Android emulator: Failed to parse AVD config file"

       

        Attachments

          Activity

          Hide
          orrc Christopher Orr added a comment -

          Ohh, that's bad. Thanks for letting me know. I did try the beta release of the SDK tools, and I thought it still worked.

          I'll try and take a look soon. But in the meantime, you should be able to downgrade the tools (not the build tools) component.

          Show
          orrc Christopher Orr added a comment - Ohh, that's bad. Thanks for letting me know. I did try the beta release of the SDK tools, and I thought it still worked. I'll try and take a look soon. But in the meantime, you should be able to downgrade the tools (not the build tools) component.
          Hide
          jenkins_saitow_bdev Rano Rakitina added a comment -

          hi, Christopher Orr, we are forced to use this version of Build Tools - anything new here?..

          Show
          jenkins_saitow_bdev Rano Rakitina added a comment - hi, Christopher Orr , we are forced to use this version of Build Tools - anything new here?..
          Hide
          dominicmarmion Dominic Marmion added a comment - - edited

          We've been hit with this issue recently too. Has there been any progress on this? Downgrading the tools isn't really a viable option at the moment.

          Show
          dominicmarmion Dominic Marmion added a comment - - edited We've been hit with this issue recently too. Has there been any progress on this? Downgrading the tools isn't really a viable option at the moment.
          Hide
          bizdelnick Dmitry Mikhirev added a comment -

          Are there any chances that this issue will be fixed? It makes the plugin completely unusable.

          Show
          bizdelnick Dmitry Mikhirev added a comment - Are there any chances that this issue will be fixed? It makes the plugin completely unusable.
          Hide
          redeamer Michael Musenbrock added a comment -

          Call for comment and review: I addressed this issue with PR #71 further info can be found there.

          Show
          redeamer Michael Musenbrock added a comment - Call for comment and review: I addressed this issue with PR #71  further info can be found there.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Michael Musenbrock
          Path:
          src/main/java/hudson/plugins/android_emulator/AndroidEmulator.java
          src/main/java/hudson/plugins/android_emulator/Constants.java
          src/main/java/hudson/plugins/android_emulator/EmulatorConfig.java
          src/main/java/hudson/plugins/android_emulator/SdkInstaller.java
          src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java
          src/main/java/hudson/plugins/android_emulator/sdk/EmulatorToolLocator.java
          src/main/java/hudson/plugins/android_emulator/sdk/Tool.java
          src/main/java/hudson/plugins/android_emulator/util/Utils.java
          src/main/resources/hudson/plugins/android_emulator/AndroidEmulator/config.jelly
          src/main/resources/hudson/plugins/android_emulator/Messages.properties
          src/main/webapp/help-deviceDefinition.html
          src/test/java/hudson/plugins/android_emulator/AndroidPlatformTest.java
          src/test/java/hudson/plugins/android_emulator/EmulatorConfigTest.java
          src/test/java/hudson/plugins/android_emulator/sdk/AndroidSdkTest.java
          src/test/java/hudson/plugins/android_emulator/util/UtilsTest.java
          http://jenkins-ci.org/commit/android-emulator-plugin/3b9e5b948f4c542301aa048f4147189f7e7856d7
          Log:
          [FIXED JENKINS-40178][FIXED JENKINS-43215][FIXED JENKINS-44490] Add support for Android Emulator 2.0

          Added support for the 'new' Android Emulator 2.0, which got support in SDK Tools v25 but
          was lacking some functionality the plugin relies on. Since SDK Tools v26 the new emulator
          engine supports all needed flags and parameters.

          The plugin creates AVDs and starts the emulator in legacy format or in the new format,
          dependent of which SDK Tools version is installed (<= 25 legacy, >= 26 new format).

          A new configuration option was added ('Device definition') which is needed (to avoid
          user input) on AVD creation. It is used to define a specific device ('avdmanager list device'),
          but it is only respected if SDK Tools >= 26 are used.

          Added a helper class AndroidPlatformVersions which holds the current data of platforms,
          which was moved from AndroidPlatform. Additional AndroidPlatform got refactored to
          handle and retrieve more information needed for the emulator (package path) and
          for more convenient access to vendor and api information of the used platform.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michael Musenbrock Path: src/main/java/hudson/plugins/android_emulator/AndroidEmulator.java src/main/java/hudson/plugins/android_emulator/Constants.java src/main/java/hudson/plugins/android_emulator/EmulatorConfig.java src/main/java/hudson/plugins/android_emulator/SdkInstaller.java src/main/java/hudson/plugins/android_emulator/sdk/AndroidSdk.java src/main/java/hudson/plugins/android_emulator/sdk/EmulatorToolLocator.java src/main/java/hudson/plugins/android_emulator/sdk/Tool.java src/main/java/hudson/plugins/android_emulator/util/Utils.java src/main/resources/hudson/plugins/android_emulator/AndroidEmulator/config.jelly src/main/resources/hudson/plugins/android_emulator/Messages.properties src/main/webapp/help-deviceDefinition.html src/test/java/hudson/plugins/android_emulator/AndroidPlatformTest.java src/test/java/hudson/plugins/android_emulator/EmulatorConfigTest.java src/test/java/hudson/plugins/android_emulator/sdk/AndroidSdkTest.java src/test/java/hudson/plugins/android_emulator/util/UtilsTest.java http://jenkins-ci.org/commit/android-emulator-plugin/3b9e5b948f4c542301aa048f4147189f7e7856d7 Log: [FIXED JENKINS-40178] [FIXED JENKINS-43215] [FIXED JENKINS-44490] Add support for Android Emulator 2.0 Added support for the 'new' Android Emulator 2.0, which got support in SDK Tools v25 but was lacking some functionality the plugin relies on. Since SDK Tools v26 the new emulator engine supports all needed flags and parameters. The plugin creates AVDs and starts the emulator in legacy format or in the new format, dependent of which SDK Tools version is installed (<= 25 legacy, >= 26 new format). A new configuration option was added ('Device definition') which is needed (to avoid user input) on AVD creation. It is used to define a specific device ('avdmanager list device'), but it is only respected if SDK Tools >= 26 are used. Added a helper class AndroidPlatformVersions which holds the current data of platforms, which was moved from AndroidPlatform. Additional AndroidPlatform got refactored to handle and retrieve more information needed for the emulator (package path) and for more convenient access to vendor and api information of the used platform.
          Hide
          orrc Christopher Orr added a comment -

          Version 3.0 of the plugin has been release, which solves this issue.

          Show
          orrc Christopher Orr added a comment - Version 3.0 of the plugin has been release, which solves this issue.

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              jenkins_saitow_bdev Rano Rakitina
            • Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: