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

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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Jenkins ver. 1.465
      Android Emulator Plugin 2.2

      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

          [JENKINS-13906] Android emulator plugin doesn't work if multiple ABI's are installed

          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

          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

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

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

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

              Created:
              Updated:
              Resolved: