Flake for rust tauri not working

I was tying to use tauri on my android.
It works on the browser, but running on android i get

Failed to install the following SDK components:
build-tools;34.0.0 Android SDK Build-Tools 34
The SDK directory is not writable (/nix/store/

I used this link as a guide
flake source
As i have not used nixos more than a year, i am relativelly new here.

Any help appreciated.

Warning: Observed package id 'ndk;26.3.11579264' in inconsistent location '/nix/store/iwnz7l012rnag8g6gpmsf2pq51pcnqq8-androidsdk/libexec/android-sdk/ndk-bundle' (Expected '/nix/store/iwnz7l012rnag8g6gpmsf2pq51pcnqq8-androidsdk/libexec/android-sdk/ndk/26.3.11579264')

Hi can you explain further how you get the error? Do you mean you already build the binary and the you get the error when trying to execute the binary? Or do you just get the error when trying to build your project?

Sorry, i got too much work for the moment. I will come back later (a month or more) here and try to fix it.
I wanted it for a showcase, but could not make it on time. (now i got a project first to finish).