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

Can't run emulator "PANIC: Missing emulator engine program for 'x86' CPU." after clean install Android Studio 2.3.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • macOS Sierra 10.12.4
      Java SE 8 (1.8.0_121)
      Android Studio 2.3.1
      Jenkins 2.54
      android-emulator-plugin 2.15

      $sdkmanager --list
      emulator 26.0.0
      build-tools 25.0.2
      tools 26.0.1
      platform-tools 25.0.4

      Current behaviour

      I could not run emulator with android-emulator-plugin 2.15. It shows "PANIC: Missing emulator engine program for 'x86' CPU." and never starts emulator.

      Workaround

      It worked after I did these two steps.

      1. Add to global Jenkins environment variables:

      LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ANDROID_HOME/tools/lib

      2. Add to android-emulator-plugin->Advanced->Emulator options:

      -engine auto

      I found somehow this stackoverflow question helpful.

      I guess adding QEMU2 support would solve the problem (ref. JENKINS-40178)

            orrc Christopher Orr
            marjanovic Dragan Marjanovic
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: