这是我在这里的第一篇文章,即使我在这里找到了很多解决问题的答案,但为此我没有运气。
从Jenkins启动时,Android模拟器启动,然后在几秒钟后被杀死,我可以简要看到模拟器寡妇,但随后它关闭。之前使用相同的设置有效,不确定更改了什么,我试图降级Android Emulator插件和Jenkins本身,但是没有运气。 我在本地Windows计算机,WIN 10 Pro,8GB RAM上使用Jenkins。 INTEL处理器。我已经浏览了网上的所有答案,但到目前为止还没有运气,尝试重新安装Emulator插件,延迟启动,使用-no-window option(headles)...
这是我看到的日志:
[android] Using Android SDK: C:\Users\PavleD\.jenkins\tools\android-sdk
[android] Setting hardware properties:
disk.dataPartition.size: 1000m
hw.ramSize: 768m
hw,gpu.enabled: yes
hw.cpu.ncore: 2
$ C:\Users\PavleD\.jenkins\tools\android-sdk/platform-
tools/adb.exe start-server
* daemon not running; starting now at tcp:5815
* daemon started successfully
$ C:\Users\PavleD\.jenkins\tools\android-sdk/platform-
tools/adb.exe start-server
[android] Starting Android emulator
[android] Erasing existing emulator data...
$ C:\Users\PavleD\.jenkins\tools\android-
sdk/emulator/emulator.exe -skin 1280x800 -ports 5786,5787 -report-console tcp:5833,max=160 -prop persist.sys.language=en -prop
persist.sys.country=US -avd hudson_en-US_320_WXGA800_android-26_x86_RingCov -wipe-data
Failed to open /qemu.conf, err: 2
HAX is working and emulator runs in fast virt mode.
emulator: WARNING: Requested adb port (5787) is outside the
recommended range [5555,5586]. ADB may not function properly for
the emulator. See -help-port for details.
[android] Emulator reported that the console is available on port 5,786
[android] Waiting for emulator to finish booting...
$ C:\Users\PavleD\.jenkins\tools\android-sdk/platform-
tools/adb.exe -s emulator-5786 wait-for-device shell getprop
init.svc.bootanim
[android] Emulator reported that the startup process is ''
[android] Emulator was shut down before it finished booting
[android] Stopping Android emulator
$ C:\Users\PavleD\.jenkins\tools\android-sdk/platform-
tools/adb.exe kill-server
Finished: NOT_BUILT
当我走得更远时,这是一次不同的尝试,但结果几乎相同:
[android] Using Android SDK:
C:\Users\PavleD\.jenkins\tools\android-sdk
[android] Creating Android AVD:
C:\Users\PavleD\.android\avd\hudson_en-US_320_WXGA800_android-
26_x86_RingCov.avd
[android] C:\Users\PavleD\.jenkins\tools\android-
sdk/tools/bin/avdmanager.bat create avd -f -c 64M -n hudson_en-
US_320_WXGA800_android-26_x86_RingCov -k system-images;android-
26;default;x86
Loading local repository...
[========= ] 25% Loading local
repository...
[========= ] 25% Fetch remote
repository...
[=======================================] 100% Fetch remote
repository...
Auto-selecting single ABI x86
> Process took a while, may wait for input.
> <SENDING ENTER>
[android] Setting hardware properties:
disk.dataPartition.size: 1000m
hw.ramSize: 768m
hw,gpu.enabled: yes
hw.cpu.ncore: 2
$ C:\Users\PavleD\.jenkins\tools\android-sdk/platform-
tools/adb.exe start-server
* daemon not running; starting now at tcp:5847
* daemon started successfully
$ C:\Users\PavleD\.jenkins\tools\android-sdk/platform-
tools/adb.exe start-server
[android] Starting Android emulator
$ C:\Users\PavleD\.jenkins\tools\android-
sdk/emulator/emulator.exe -skin 1280x800 -ports 5706,5707 -
report-console tcp:5828,max=120 -prop persist.sys.language=en -
prop persist.sys.country=US -avd hudson_en-
US_320_WXGA800_android-26_x86_RingCov -no-window
Failed to open /qemu.conf, err: 2
HAX is working and emulator runs in fast virt mode.
emulator: WARNING: Requested adb port (5707) is outside the
recommended range [5555,5586]. ADB may not function properly for
the emulator. See -help-port for details.
[android] Emulator reported that the console is available on
port 5,706
[android] Waiting for emulator to finish booting...
$ C:\Users\PavleD\.jenkins\tools\android-sdk/platform-
tools/adb.exe -s emulator-5706 wait-for-device shell getprop
init.svc.bootanim
[android] Emulator reported that the startup process is ''
$ C:\Users\PavleD\.jenkins\tools\android-sdk/platform-
tools/adb.exe -s emulator-5706 wait-for-device shell getprop
init.svc.bootanim
[android] Emulator reported that the startup process is
'running'
$ C:\Users\PavleD\.jenkins\tools\android-sdk/platform-
tools/adb.exe -s emulator-5706 wait-for-device shell getprop
init.svc.bootanim
[android] Emulator reported that the startup process is
'running'
emulator: INFO: boot completed
emulator: Increasing screen off timeout, logcat buffer size to
2M.
emulator: Revoking microphone permissions for Google App.
[android] Emulator was shut down before it finished booting
[android] Stopping Android emulator
$ C:\Users\PavleD\.jenkins\tools\android-sdk/platform-
tools/adb.exe kill-server
Finished: NOT_BUILT