Change:
, libpulseaudio , libGL , libX11 <ins> , libxcb , libXcomposite , libXcursor , libXdamage </ins> , libXext <ins> , libXfixes </ins> , libXi , libXrandr , libXrender , libXtst , makeWrapper <ins> , nspr , nss </ins> , pciutils , pkgsi686Linux , setxkbmap , stdenv <ins> , systemd </ins> , unzip , which , runCommand

Discussion:
Describe the bug Android emulator launched from Android Studio FHS environment crashes with error message Looks like nss is missing from FHS environment used for launching Android Studio. To launch emulator I had to add a bunch of missing libraries into Even with additional libraries emulator prints following warnings during launch but main emulator functionality works. However if I try to open emulator settings from emulator interface itself (floating toolbar) emulator crashes with stacktrace: To Reproduce Steps to reproduce the behavior: Android Studio Android SDK from (Android Studio does it automatically on first launch) AVD (Android virtual device) to launch created ADV crashes with error message from above. Expected behavior Emulator should launch and work Additional context I seem to remember that emulator was working fine in nixos-unstable a couple of month ago until 20.03 was merged in but can't say for sure since I didn't use it until recently. Metadata system: host os: multi-user?: sandbox: version: channels(root): channels(alapshin): nixpkgs: Maintainer information:
thank you very much for the detailed bug report, that's very useful :) created a PR that should address this issue: But unfortunately I didn't have time to test it yet (I don't use Android-Studio anymore and did only test the builds on my Desktop-PC where the Emulator doesn't run (IIRC due to the AMD CPU, possibly also due to the incompatible GPU)). Comparing your patch with I've noticed that you've some additional dependencies: dbus libxcb Maybe we should add those in as well.
Similar here: No user on the computer, of course.
I see the issue has been closed and a PR has been merged over a month ago. Is this going to be fixed automatically in a future version of Android Studio? I'm using the latest one and I got the same error. Info on my build:
Yes, it should already be fixed (except for and older channels). the same error as or the error that PR should fix?: In any case the output of and the full log from the Android Emulator (i.e. at least all messages from the window) would be helpful. And it might also be relevant if this happens with an Intel or AMD CPU as these issues might be hardware dependent. And feel free to open a new issue if this isn't related to the missing shared library ().
thanks, understood.

Now I don't think it's related to the original issue and PR, and I don't even know if it's related to this project. Sorry! I don't have nix installed. It was the same message as and it only happens the first time I try to interact with one of the buttons on the side of the emulator. It isn't preventing things from working overall. For reference, I'm using Intel and this is the log:
if you don't have Nix installed this is the wrong issue tracker as changes to the Nix package only affect Nix(OS) users (not the upstream Android Studio package from Google or the downstream package of your Linux distribution). If you're using the official package from the website: You should be able (IIRC) to create a bug report by selecting (from the menu bar of Android Studio). If you install Android Studio via your package manager you should probably use your distribution's issue tracker first / contact the maintainer:
joshuaduong is going to have a field day on his next interview: "Tell me about the last time you ....?"
I'm still getting the same problem with: !
I am still having the same problem as well. I talked directly to Joshua, which has suggest to use the flags: "-feature -LocationUiV2" which actually worked for me