-
Notifications
You must be signed in to change notification settings - Fork 45
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-studie + sdk fails, SDK missing or out of date #91
Comments
I experience the same issues, I have also tried using the flake and get the same error. |
Using the flake and devshell.nix from the template and starting android-studio from within the devshell I also get
|
I copied out the Nix-provided Android SDK from the Nix Store to my home directory, and after making it writable, selecting it in Android Studio resulted in a new screen saying "Nothing to do! It seems like there's no difference between the two:
produces no output. However, after going back to the Nix-provided SDK in the Nix Store, it is now able to be selected and new projects can be created. So it seems this might be a workaround for now. |
Also having the same issue. Are there some instructions missing from the readme or something? Or is it just currently broken? |
i have the same issue. i noted this in my warning printed to the terminal from android-studio.
I think this might be the culprit |
i workaround might be to pin down nixpkgs and/or android-nixpkgs to some version in the flake.lock. If anyone have a known working flake.lock based on the template in this repo. Please share 🙏 |
I managed to make it work thanks to one of the maintainers in nixpkgs. Here's the comment that completely solved it for me: NixOS/nixpkgs#355045 (comment). It's for the one in nixpkgs, but it works for this flake too. |
Yeah, it was very non obvious even when adding that to the wrapper. I've historically just created a local.properties in a shell hook to get around this. |
When using the default shell provided in the repo (without flakes), opening Android Studio gives the following error.
The path is correct to the SDK, and it seems to have all the things needed included. However, it ONLY works if the SDK is moved outside the nix store, and made RW. I can see that it changes one file, between the one in the store (android-sdk RO) and the one outside the store (android-sdk2 RW), and then it works.
I'm not sure what the issue is, but I'm somewhat amazed that no issues have been made for it yet.
The text was updated successfully, but these errors were encountered: