我在Jenkins的Android Emulator插件时遇到问题。我正在尝试启动一个模拟器,但大多数时候,它只会等到设备在线,导致超时。
错误代码可以在这里看到:
$ C:\Users\Administrator\Documents\Jenkins\AndroidSDK/platform-tools/adb.exe connect localhost:6086
connected to localhost:6086
[android] Waiting for emulator to finish booting...
$ C:\Users\Administrator\Documents\Jenkins\AndroidSDK/platform-tools/adb.exe -s localhost:6086 shell getprop init.svc.bootanim
error: device offline
$ C:\Users\Administrator\Documents\Jenkins\AndroidSDK/platform-tools/adb.exe connect localhost:6086
$ C:\Users\Administrator\Documents\Jenkins\AndroidSDK/platform-tools/adb.exe -s localhost:6086 shell getprop init.svc.bootanim
error: device offline
$ C:\Users\Administrator\Documents\Jenkins\AndroidSDK/platform-tools/adb.exe connect localhost:6086
$ C:\Users\Administrator\Documents\Jenkins\AndroidSDK/platform-tools/adb.exe -s localhost:6086 shell getprop init.svc.bootanim
error: device offline
$ C:\Users\Administrator\Documents\Jenkins\AndroidSDK/platform-tools/adb.exe disconnect localhost:6086
$ C:\Users\Administrator\Documents\Jenkins\AndroidSDK/platform-tools/adb.exe connect localhost:6086
$ C:\Users\Administrator\Documents\Jenkins\AndroidSDK/platform-tools/adb.exe -s localhost:6086 shell getprop init.svc.bootanim
error: device offline
$ C:\Users\Administrator\Documents\Jenkins\AndroidSDK/platform-tools/adb.exe connect localhost:6086
$ C:\Users\Administrator\Documents\Jenkins\AndroidSDK/platform-tools/adb.exe -s localhost:6086 shell getprop init.svc.bootanim
error: device offline
... A LOT of repeating ...
$ C:\Users\Administrator\Documents\Jenkins\AndroidSDK/platform-tools/adb.exe connect localhost:6086
$ C:\Users\Administrator\Documents\Jenkins\AndroidSDK/platform-tools/adb.exe -s localhost:6086 shell getprop init.svc.bootanim
error: device offline
$ C:\Users\Administrator\Documents\Jenkins\AndroidSDK/platform-tools/adb.exe connect localhost:6086
$ C:\Users\Administrator\Documents\Jenkins\AndroidSDK/platform-tools/adb.exe -s localhost:6086 shell getprop init.svc.bootanim
error: device offline
$ C:\Users\Administrator\Documents\Jenkins\AndroidSDK/platform-tools/adb.exe connect localhost:6086
[android] Timed-out after waiting 720 seconds for emulator
有谁知道如何解决这个问题?