2

嗨,我正在写一本 MAC 书。当我通过 Jenkins 80% 的时间启动 android 模拟器时,模拟器无法启动。没有詹金斯它可以工作。

Building in workspace /Users/Shared/Jenkins/Home/workspace/Stress Test
$ /Users/Shared/Jenkins/Home/tools/android-sdk/tools/android list target
[android] Using Android SDK: /Users/Shared/Jenkins/Home/tools/android-sdk
$ /Users/Shared/Jenkins/Home/tools/android-sdk/platform-tools/adb start-server
_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
* daemon not running. starting it now on port 5653 *
* daemon started successfully *
$ /Users/Shared/Jenkins/Home/tools/android-sdk/platform-tools/adb start-server
[android] Starting Android emulator
$ /Users/Shared/Jenkins/Home/tools/android-sdk/tools/emulator -no-boot-anim -ports 5651,5652 -avd test_device -no-snapshot-load -no-snapshot-save -no-window
_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL.
Failed to create Context 0x3005
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
HAX is working and emulator runs in fast virt mode
$ /Users/Shared/Jenkins/Home/tools/android-sdk/platform-tools/adb connect emulator-5651
[android] Waiting for emulator to finish booting...
$ /Users/Shared/Jenkins/Home/tools/android-sdk/platform-tools/adb -s emulator-5651 shell getprop dev.bootcomplete
error: device offline

...

我正在使用安卓模拟器插件。有趣的是,当我以 jenkins 用户身份使用命令行时,它也可以正常工作。有任何想法吗?

4

1 回答 1

2

好的,这个问题似乎与 jenkins android 插件有关。(https://issues.jenkins-ci.org/browse/JENKINS-11952)。我将 Jenkins Android 插件更新为 2.13-SNAPSHOT,它现在可以工作了。您可以在此处找到更新:https ://jenkins.ci.cloudbees.com/job/plugins/job/android-emulator-plugin/lastStableBuild/org.jenkins-ci.plugins $android-emulator/。

但是,这并没有修复日志中的错误消息。但它有效。

Failed to create Context 0x3005
emulator: WARNING: Could not initialize OpenglES emulation, using software      renderer.
于 2015-03-03T09:15:40.027 回答