Flutter unable to find cmdline-tools

I just installed flutter and androidsdk for my college works and flutter is unable to recognize where cmdlinetools are, even after adding the path to ANDROID_HOME.

The default flutter package in nixpkgs doesn’t really include any android tooling by itself, and is mostly meant for building desktop applications. Have you tried creating a development environment similar to the one proposed on the wiki?

https://wiki.nixos.org/wiki/Flutter

I’ve (hopefully) found a solution where I don’t have to build androidenv: