Skip to content
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

Is not possible to use android studio on macOS m1? #1515

Open
mamcx opened this issue Oct 9, 2024 · 2 comments
Open

Is not possible to use android studio on macOS m1? #1515

mamcx opened this issue Oct 9, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mamcx
Copy link

mamcx commented Oct 9, 2024

Describe the bug

Following https://devenv.sh/integrations/android/

I get:

error:
       … while evaluating the attribute 'config'
         at «github:NixOS/nixpkgs/1366d1af8f58325602280e43ed6233849fb92216»/lib/modules.nix:334:9:
          333|         options = checked options;
          334|         config = checked (removeAttrs config [ "_module" ]);
             |         ^
          335|         _module = checked (config._module);while calling the 'seq' builtin
         at «github:NixOS/nixpkgs/1366d1af8f58325602280e43ed6233849fb92216»/lib/modules.nix:334:18:
          333|         options = checked options;
          334|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          335|         _module = checked (config._module);while calling the 'throw' builtin
         at «github:NixOS/nixpkgs/1366d1af8f58325602280e43ed6233849fb92216»/lib/modules.nix:310:18:
          309|                     ''
          310|             else throw baseMsg
             |                  ^
          311|         else null;

       error:
       error: The option `android.android-studio.__darwinAllowLocalNetworking' does not exist. Definition values:
       - In `/Users/mamcx/Proyectos/RustStore/devenv.nix': false
• Failed to get cachix caches due to evaluation error
error:
while evaluating the attribute 'config'
         at «github:NixOS/nixpkgs/1366d1af8f58325602280e43ed6233849fb92216»/lib/modules.nix:334:9:
          333|         options = checked options;
          334|         config = checked (removeAttrs config [ "_module" ]);
             |         ^
          335|         _module = checked (config._module);

while calling the 'seq' builtin
         at «github:NixOS/nixpkgs/1366d1af8f58325602280e43ed6233849fb92216»/lib/modules.nix:334:18:
          333|         options = checked options;
          334|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          335|         _module = checked (config._module);

while calling the 'throw' builtin
         at «github:NixOS/nixpkgs/1366d1af8f58325602280e43ed6233849fb92216»/lib/modules.nix:310:18:
          309|                     ''
          310|             else throw baseMsg
             |                  ^
          311|         else null;

       error:
       error: The option `android.android-studio.__darwinAllowLocalNetworking' does not exist. Definition values:
       - In `/Users/mamcx/Proyectos/RustStore/devenv.nix': false
Error:   × Failed to run command `/nix/store/m16x8dlzwhp7sx570h82h3x5332ldbfs-nix-2.24-devenv/bin/nix --show-trace --extra-experimental-features nix-command
  │ --extra-experimental-features flakes --option warn-dirty false --keep-going --max-jobs 4 --option eval-cache false print-dev-env --profile /Users/
  │ mamcx/Proyectos/RustStore/.devenv/gc/shell -vv --log-format internal-json`
  ╰─▶ Nix command failed: exit status: 1```


**Version**
 
devenv 1.3.0 (aarch64-darwin)
@mamcx mamcx added the bug Something isn't working label Oct 9, 2024
@domenkozar
Copy link
Member

cc @k3yss

@k3yss
Copy link
Collaborator

k3yss commented Oct 10, 2024

@mamcx Can you try switching to nixpkgs-unstable instead of devenv-nixpkgs, instructions can be found here https://devenv.sh/common-patterns/#using-nixpkgs-unstable-instead-of-devenv-nixpkgs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants