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

Certain configurations fail to create emulator due to specifying wrong ABI tag

    XMLWordPrintable

Details

    Description

      From https://stackoverflow.com/questions/35059957/cannot-create-emulator-via-jenkins-android-emulator-plugin:

      When Jenkins tries to generate my emulator, it errors out with:

      tools/android create avd -f -a -c 256M -s 1080x1920 -n hudson_de-DE_480_1080x1920_Google_Inc._Google_APIs_23_x86 -t "Google Inc.:Google APIs:23" --abi x86
      Error: Invalid --tag default for the selected target.
      

      But tools/android list targets outputs

      id: 6 or "Google Inc.:Google APIs:23"
       ...
       Tag/ABIs : google_apis/x86
      

      Back when I implemented support for ABI tags, I seem to recall it being impossible to discover the correct tag in every single case, but from this report, it should be seemingly simple enough to determine automatically choose the correct tag for this case at least.
      I can't remember what the implementation looks like, and I haven't looked at the code to see whether we're already doing something similar.

      Attachments

        Activity

          Code changed in jenkins
          User: Michael Musenbrock
          Path:
          src/main/java/hudson/plugins/android_emulator/sdk/cli/SdkToolsCommands17To25_2.java
          src/test/java/hudson/plugins/android_emulator/sdk/cli/SdkCommandsTest.java
          http://jenkins-ci.org/commit/android-emulator-plugin/f2dd70c9b56918626564657e8e653de75a62435f
          Log:
          [FIXED JENKINS-32737] Fix creation of non-default (eg. google_apis) images with SDK Tools < 25.3

          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/sdk/cli/SdkToolsCommands17To25_2.java src/test/java/hudson/plugins/android_emulator/sdk/cli/SdkCommandsTest.java http://jenkins-ci.org/commit/android-emulator-plugin/f2dd70c9b56918626564657e8e653de75a62435f Log: [FIXED JENKINS-32737] Fix creation of non-default (eg. google_apis) images with SDK Tools < 25.3

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

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

          People

            orrc Christopher Orr
            orrc Christopher Orr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: