darksoil-studio / p2p-shipyard

Ship cross-platform p2p apps
http://darksoil.studio/p2p-shipyard/
11 stars 3 forks source link

Fix/android sdk dir not writable #33

Closed mattyg closed 3 weeks ago

mattyg commented 2 months ago

Resolves https://github.com/tadfisher/android-nixpkgs/issues/106

guillemcordoba commented 2 months 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 ?

mattyg commented 2 months ago

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

mattyg commented 3 weeks ago

couldn't reproduce