Need help with Flutter configuration on NixOS

Hi, are there any flutter developers out there? I`m spending almost 3 days with trying to configure flutter + android and for now it feels almost impossible to me…

I`m already trying to use flake from the official nixos wiki: Flutter - NixOS Wiki
As well as using flake from android-nixpkgs: GitHub - tadfisher/android-nixpkgs: Nix-packaged Android SDK

Every time I get problems with the flutter doctor command. It cannot accept a license and I always get problems with the android studio integration:

[!] Android Studio (version 2022.2)
**✗ Failed to run Java: ProcessException: No such file or directory**
**Command: /nix/store/vb34qsy32gcfb662k10h68vwj4jg71ba-android-studio-stable-2022.2.1.19-unwrapped/jbr/bin/java -version**
**✗ Unable to determine bundled Java version.**
[☠] Connected device (the doctor check crashed)
**✗ Due to an error, the doctor check did not complete. If the error message below is not helpful, please let us know about this issue at**
[**https://github.com/flutter/flutter/issues**](https://github.com/flutter/flutter/issues)**.**
**✗ Exception: Unable to run "adb", check your Android SDK installation and ANDROID_SDK_ROOT environment variable: /home/void/Android/Sdk/platform-tools/adb**

It would be cool if someone could share WORKING configs so I can use them. Thank you very much!

If you’re just looking for a working setup (3 days…) - flutter binary releases used to work fine for me using a steam-run bash shell (with Android Studio from nixpkgs).

Did you get it work yet?

Change the path in android/local.properties to your android sdk path

I recently wrote a guide that may help you