Android Emulator插件无法初始化后端EGL显示

时间:2014-03-11 18:07:17

标签: android jenkins cloudbees android-emulator-plugin

我在Cloudbees上设置了Jenkins Job,我可以在那里成功结账并编译我的Android项目。现在我想在android模拟器中运行一些JUnit测试并添加Android模拟器插件。我将“显示模拟器窗口”选项设置为false但在启动模拟器后,我总是收到错误消息:“模拟器似乎没有启动;放弃”。 有没有人在Cloudbees上使用Android构建体验?

构建日志:


    $ /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

1 个答案:

答案 0 :(得分:8)

将您的工作配置与https://partnerdemo.ci.cloudbees.com/job/Android-dev/job/stockfish-android-cloud/进行比较,特别注意以下设置:

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