fab*_*hel 8 android android-emulator wayland
尝试从 android studio 运行 android 模拟器时出现以下错误。我在 Manjaro (Arch linux) 上使用 Wayland 图形管理器。
WARN - manager.EmulatorProcessHandler - Emulator terminated with exit code 134
Run Code Online (Sandbox Code Playgroud)
我尝试过许多设备,包括没有 Playstore 的 Nexus 4,这样我就可以将 RAM 调整为 2GiB,并将图形性能调整为“软件”。但没有任何办法,我总是面临这个问题。
fab*_*hel 13
尝试从命令行(~/Android/Sdk/emulator/emulator @Nexus_4_API_25)运行模拟器后,我得到了这个更明确的错误:
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.
Run Code Online (Sandbox Code Playgroud)
它与QT_QPA_PLATFORM环境变量有关,必须设置该环境变量xcb才能强制应用程序运行 undex XWayland 而不是本机 wayland。
QT_QPA_PLATFORM=xcb ~/Android/Sdk/emulator/emulator @Nexus_4_API_25
或使用 android-studio: (包括 _JAVA_AWT_WM_NONREPARENTING=1 以避免空白窗口)
QT_QPA_PLATFORM=xcb _JAVA_AWT_WM_NONREPARENTING=1 android-studio
希望这可以帮助其他人解决这个问题。
| 归档时间: |
|
| 查看次数: |
3604 次 |
| 最近记录: |