android-nixpkgs
android-nixpkgs copied to clipboard
Emulator crashes on Hyprland due to emulator-wrapped.exe
When i try to run the emulator by launching an app in Android Studio i get error message:
The emulator process for AVD Pixel_5_API_34 has terminated
The problem is fixed if i replace the files .emulator-wrapped.exe
and emulator.txt
in the emulator package with emulator.exe
from google's official emulator package. It looks like there is some issue with the wrapping. I am not sure why android-nixpkgs can't just use the standard `emulator.exe' file. Has anyone experienced the same problem and knows how to fix?
Steps to Reproduce
- add android-nixpkgs to nixos machine via home-manager module below.
- launch android-studio.
- provide SDK Location: File -> Project Structure -> SDK Location -> enter /home/$USER/Android/Sdk.
- add AVD: Tools -> Device Manager -> Create Device -> follow instructions to create Pixel_5_API_34 device.
- launch emulator.
- observe crash log output below in /home/$USER/.cache/Google/AndroidStudio2022.3/log/idea.log.
System Details
- OS: NixOS Unstable
- Shell: Bash
- Android Studio: Hedgehog 2023.1.1
- Desktop Environment: Hyprland (XWayland enabled)
Contents of emulator/emulator.txt:
#! /nix/store/q8qq40xg2grfh9ry1d9x4g7lq4ra7n81-bash-5.2-p21/bin/bash -e export QT_QPA_PLATFORM='xcb' LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+':'$LD_LIBRARY_PATH':'} LD_LIBRARY_PATH=${LD_LIBRARY_PATH/':''/nix/store/iidxwcyp8pqhrq3iji17shs4m6gin0kv-systemd-254.6/lib'':'/':'} LD_LIBRARY_PATH='/nix/store/iidxwcyp8pqhrq3iji17shs4m6gin0kv-systemd-254.6/lib'$LD_LIBRARY_PATH LD_LIBRARY_PATH=${LD_LIBRARY_PATH#':'} LD_LIBRARY_PATH=${LD_LIBRARY_PATH%':'} export LD_LIBRARY_PATH LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+':'$LD_LIBRARY_PATH':'} LD_LIBRARY_PATH=${LD_LIBRARY_PATH/':''/nix/store/jnlxl2ry9y03vq4skhm26igfd84xwa93-dbus-1.14.10-lib/lib'':'/':'} LD_LIBRARY_PATH='/nix/store/jnlxl2ry9y03vq4skhm26igfd84xwa93-dbus-1.14.10-lib/lib'$LD_LIBRARY_PATH LD_LIBRARY_PATH=${LD_LIBRARY_PATH#':'} LD_LIBRARY_PATH=${LD_LIBRARY_PATH%':'} export LD_LIBRARY_PATH LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+':'$LD_LIBRARY_PATH':'} LD_LIBRARY_PATH=${LD_LIBRARY_PATH/':''/nix/store/53ch4im2ziqjjhr08fphwxkclkqmrqkp-libudev0-shim-1/lib'':'/':'} LD_LIBRARY_PATH='/nix/store/53ch4im2ziqjjhr08fphwxkclkqmrqkp-libudev0-shim-1/lib'$LD_LIBRARY_PATH LD_LIBRARY_PATH=${LD_LIBRARY_PATH#':'} LD_LIBRARY_PATH=${LD_LIBRARY_PATH%':'} export LD_LIBRARY_PATH export QT_XKB_CONFIG_ROOT='/nix/store/vrybs7z641yn0qkk4g9h8q5waxa9ljlp-xkeyboard-config-2.40/share/X11/xkb' export QTCOMPOSE='/nix/store/y8f8j7nb52l30cg8x0clk9k91fpi224v-libX11-1.8.7/share/X11/locale' exec -a "$0" "/nix/store/vdrgqk9mwqzpg89b5yvkfzf3xy87g05a-emulator-34.2.1/.emulator-wrapped" "$@"