通过远程查看器 VNC
,我可以在远程机器上启动 Android 模拟器。
emulator -avd emu1
但是通过远程机器上的SSH,我遇到了错误。emulator: INFO: QtLogger.cpp:68: Warning: could not connect to display ((null):0, (null))
emulator: INFO: QtLogger.cpp:68: Info: Could not load the Qt platform plugin "xcb" in "/opt/androidtest/android-sdk/emulator/lib64/qt/plugins" even though it was found. ((null):0, (null))
Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
((null):0, (null))
emulator: INFO: QtLogger.cpp:68: Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
((null):0, (null))
但是,如果我通过SSH无头方式启动模拟器,则模拟器会启动
emulator -avd emu1 -no-window
ssh
的连接的?你使用了-X
还是-Y
选项? - Philippe