简体   繁体   中英

Android Emulator Plugin Failed to Initialize backend EGL display

I set up a Jenkins Job on Cloudbees and I can successfully checkout and compile my Android project there. Now I would like to run some JUnit tests in the android emulator and added the Android emulator plugin. I set the “Show Emulator Window“ option to false but after startup of the emulator I always get the error message: “Emulator did not appear to start; giving up”. Has anyone experience with Android builds on Cloudbees?

Build log:

$ /opt/android/android-sdk-linux/tools/android list target
    [android] Using Android SDK: /opt/android/android-sdk-linux
    [android] Creating Android AVD: /home/jenkins/.android/avd/hudson_en-US_160_WVGA_android-17_armeabi-v7a.avd
    [android] /opt/android/android-sdk-linux/tools/android create avd -f -a -c 64M -s WVGA800 -n hudson_en-US_160_WVGA_android-17_armeabi-v7a -t android-17 --abi armeabi-v7a
    $ /opt/android/android-sdk-linux/platform-tools/adb start-server
    [android] Starting Android emulator
    $ /opt/android/android-sdk-linux/tools/emulator -no-boot-anim -ports 59102,56142 -prop persist.sys.language=en -prop persist.sys.country=US -avd hudson_en-US_160_WVGA_android-17_armeabi-v7a -no-snapshot-load -no-snapshot-save -no-window
    Failed to Initialize backend EGL display
    * daemon not running. starting it now on port 52538 *
    * daemon started successfully *
    [android] Emulator did not appear to start; giving up
    $ /opt/android/android-sdk-linux/platform-tools/adb disconnect localhost:56142
    [android] Stopping Android emulator
    $ /opt/android/android-sdk-linux/platform-tools/adb kill-server

Compare your job configuration with https://partnerdemo.ci.cloudbees.com/job/Android-dev/job/stockfish-android-cloud/ , paying particular attention to the following settings:

Inject env var: LD_LIBRARY_PATH=/opt/android/android-sdk-linux/tool/lib
Target ABI: armeabi-v7a
Advanced -> Emulator Options: -no-audio -gpu off
Advanced -> Emulator Executable: emulator64-arm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM