我在本地计算机上设置了Jenkins,我想从Jenkins门户启动模拟器。在Jenkins项目的内部配置中,我启用了“在构建期间运行Android模拟器”,当我构建项目时,系统映像已成功下载。但我无法启动模拟器。模拟器启动失败,并显示以下日志。
QXcbConnection: Could not connect to display
emulator: WARNING: Classic qemu does not support SMP. The hw.cpu.ncore option from your config file is ignored.
[android] Emulator did not appear to start; giving up
[android] Stopping Android emulator
$ /home/anshul/Android/Sdk/platform-tools/adb kill-server
Finished: NOT_BUILT
从日志中,我认为运行它的进程没有连接到显示器的权限。如何通过Jenkins启动模拟器。
供参考:
Ubuntu版本: 14.04
下载Android系统图片 - 5.1