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

Fix/android sdk dir not writable #33

Closed

Conversation

mattyg
Copy link
Contributor

@mattyg mattyg commented Aug 14, 2024

@guillemcordoba
Copy link
Contributor

Okey... So AFAIU, the android SDK is actually stored in the nix store, which is not writable by any other process than nix. If it's writable from inside a shellHook and that makes it work, that would seem like the problem is that the android SDK is outside the nix store.

This issue happens because of the way that the tauri CLI works. It looks for the appropriate build tools in the environment, and if it can't find them, it tries to download them in to the android SDK folder. This works fine in most cases, except for nix, in which the environment and all its dependencies are expected to be declared in the nix code and not downloaded dynamically when inside the nix shell. So, the actual fix should be to figure out which build tools tauri is trying to download here, and add them in the androidDev devshell. Could you paste the exact output of the error that you get @mattyg ?

@mattyg
Copy link
Contributor Author

mattyg commented Sep 2, 2024

Ah okay that makes sense I'll try to reproduce and see what its missing.

@mattyg
Copy link
Contributor Author

mattyg commented Oct 16, 2024

couldn't reproduce

@mattyg mattyg closed this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The SDK directory is not writable
2 participants