I’m trying to use devenv to build a flutter app for android but keep getting an error:
$ flutter build apk
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':cf56914b32:compileKotlin'.
> java.nio.file.NoSuchFileException: /nix/store/l2c128zl4gq1llad8fqrx00mp3178add-flutter-wrapped-3.29.3-sdk-links/packages/flutter_tools/gradle/.gradle/kotlin/sessions/kotlin-compiler-7405176626259042603.salive
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 587ms
Running Gradle task 'assembleRelease'... 1,199ms
Gradle task assembleRelease failed with exit code 1
My deven.nix:
{ pkgs, lib, config, inputs, ... }:
{
android = {
enable = true;
platforms.version = [ "34" ];
flutter.enable = true;
};
# https://devenv.sh/basics/
env.GREET = "devenv";
env.CHROME_EXECUTABLE = "google-chrome-stable";
# https://devenv.sh/packages/
packages = with pkgs; [
];
}
Any thoughts on how I can fix this?