Closed mattyg closed 3 weeks ago
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 ?
Ah okay that makes sense I'll try to reproduce and see what its missing.
couldn't reproduce
Resolves https://github.com/tadfisher/android-nixpkgs/issues/106