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

AVD not being created

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      [android] Using Android SDK: C:\Users\<user>\AppData\Local\Android\sdk
      [android] Creating Android AVD: C:\Users\<user>\.android\avd\hudson_en-US_160_WVGA_android-23_armeabi_jenkins.avd
      [android] C:\Users\<user>\AppData\Local\Android\sdk/tools/android.bat create avd -f -a -c 32M -s WVGA800 -n hudson_en-US_160_WVGA_android-23_armeabi_jenkins -t android-23 --abi armeabi
      [android] Could not create Android emulator: Failed to parse AVD config file
      Finished: NOT_BUILT

      It seems the first step where it's supposed to be creating avd files doesn't actually make anything since that directory only contains avd that I've made in Android Studio.

        Attachments

          Activity

          Hide
          oldelvet Richard Mortimer added a comment -

          I came across a similar failure earlier today. In my case it was due to having specified an invalid display configuration for the emulator. This resulted in the "create avd" command failing.

          Having looked at the code the emulator plugin only reports the output (either stderr or stdout) in very specific cases. This hides the cause of the failure. In addition the "Failed to parse AVD config file" failure is just a symptom of the problem because there is no configuration file to parse.

          I have prepared a patch that improves error logging. See https://github.com/jenkinsci/android-emulator-plugin/pull/62

          Show
          oldelvet Richard Mortimer added a comment - I came across a similar failure earlier today. In my case it was due to having specified an invalid display configuration for the emulator. This resulted in the "create avd" command failing. Having looked at the code the emulator plugin only reports the output (either stderr or stdout) in very specific cases. This hides the cause of the failure. In addition the "Failed to parse AVD config file" failure is just a symptom of the problem because there is no configuration file to parse. I have prepared a patch that improves error logging. See https://github.com/jenkinsci/android-emulator-plugin/pull/62
          Hide
          arimil Arie Miller added a comment -

          I ended up figuring out that this was due to the avd config file not having proper line breaks in my scenario.

          Show
          arimil Arie Miller added a comment - I ended up figuring out that this was due to the avd config file not having proper line breaks in my scenario.
          Hide
          orrc Christopher Orr added a comment -

          The new 3.0 release should be a bit more robust here, and include more logging when creating the AVD fails.

          Show
          orrc Christopher Orr added a comment - The new 3.0 release should be a bit more robust here, and include more logging when creating the AVD fails.

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              arimil Arie Miller
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: