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

Android emulator plugin doesn't work if multiple ABI's are installed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Jenkins ver. 1.465
      Android Emulator Plugin 2.2
    • Similar Issues:

      Description

      Steps:

      1. Update SDK now installs both armeabi-v7a and x86 versions of android-15

      # android update sdk -u -t sysimg-15
      

      2. Observe that Create AVD now fails without --abi

      # android create avd -f -a -s WVGA800 -n hudson_en-US_240_WVGA_android-15 -t android-15
      Valid ABIs: armeabi-v7a, x86
      Error: This platform has more than one ABI. Please specify one using --abi.
      
      # android list targets
      
      Available Android targets:
      ----------
      id: 1 or "android-15"
           Name: Android 4.0.3
           Type: Platform
           API level: 15
           Revision: 3
           Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800
           ABIs : armeabi-v7a, x86
      

      3. Observe that Android Emulator Plugin fails and lies about the cause:

      [android] android create avd -f -a -s WVGA800 -n hudson_en-US_240_WVGA_android-15 -t android-15
                The desired platform 'android-15' requires that you install a system image in order to create an AVD.
                Use the Android SDK Manager to install the 'ARM EABI v7a System Image' for this platform.
      

      Fix: Add --abi option to select the ABI

      # android create avd -f -a -s WVGA800 -n hudson_en-US_240_WVGA_android-15 -t android-15 --abi armeabi-v7a
      

      Related to JENKINS-11516

        Attachments

          Activity

          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/AndroidEmulator.java
          src/main/java/hudson/plugins/android_emulator/Constants.java
          src/main/java/hudson/plugins/android_emulator/EmulatorConfig.java
          src/main/resources/hudson/plugins/android_emulator/AndroidEmulator/config.jelly
          src/main/resources/hudson/plugins/android_emulator/Messages.properties
          src/main/webapp/help-targetAbi.html
          http://jenkins-ci.org/commit/android-emulator-plugin/7a3d75b5d45f15406b8fc652035b4d392758e07f
          Log:
          Merge pull request #12 from jberkel/master

          [FIXED JENKINS-13906] Allow user to specify target abi / system image

          Compare: https://github.com/jenkinsci/android-emulator-plugin/compare/26c3b573278b...7a3d75b5d45f

          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/AndroidEmulator.java src/main/java/hudson/plugins/android_emulator/Constants.java src/main/java/hudson/plugins/android_emulator/EmulatorConfig.java src/main/resources/hudson/plugins/android_emulator/AndroidEmulator/config.jelly src/main/resources/hudson/plugins/android_emulator/Messages.properties src/main/webapp/help-targetAbi.html http://jenkins-ci.org/commit/android-emulator-plugin/7a3d75b5d45f15406b8fc652035b4d392758e07f Log: Merge pull request #12 from jberkel/master [FIXED JENKINS-13906] Allow user to specify target abi / system image Compare: https://github.com/jenkinsci/android-emulator-plugin/compare/26c3b573278b...7a3d75b5d45f
          Hide
          orrc Christopher Orr added a comment -

          Version 2.3 of the plugin has been released, which fixes this issue.

          Show
          orrc Christopher Orr added a comment - Version 2.3 of the plugin has been released, which fixes this issue.

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              joebowbeer Joe Bowbeer
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: