-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android emulator crashes when launched from Android Studio FHS environment #70844
Comments
@alapshin thank you very much for the detailed bug report, that's very useful :) @alexbakker created a PR that should address this issue: #70857 Comparing your patch with #70857 I've noticed that you've added some additional dependencies:
Maybe we should add those in #70857 as well. |
Fix NixOS#70844. (cherry picked from commit a7e87bc) Reason: Should be required for newer emulator versions on 19.09 as well.
Similar here:
No |
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
@bani the same error as @maxbernyk-vibrato or the error that PR #70857 should fix?:
In any case the output of And feel free to open a new issue if this isn't related to the missing shared library ( |
@primeos 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 @maxbernyk-vibrato, 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:
|
@bani 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: https://developer.android.com/studio/ |
joshuaduong is going to have a field day on his next interview: "Tell me about the last time you ....?" |
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 |
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 https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/android-studio/common.nix
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:
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
"x86_64-linux"
Linux 5.3.5, NixOS, 20.03pre196201.07d4df59626 (Markhor)
yes
yes
nix-env (Nix) 2.3
"nixos-20.03pre196201.07d4df59626"
""
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: