`❯ flutter run -d emulator-5554` ```Launching lib/...
# community-support
j
❯ flutter run -d emulator-5554
Copy code
Launching lib/main.dart on sdk gphone64 arm64 in debug mode...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':cf56914b32:compileKotlin'.
> java.nio.file.NoSuchFileException: /nix/store/s4n9rd6y8aiychhpylmkvpf0yh0migj9-flutter-wrapped-3.29.3-sdk-links/packages/flutter_
tools/gradle/.gradle/kotlin/sessions/kotlin-compiler-12913036745881058983.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 771ms
Running Gradle task 'assembleDebug'...                           1,372ms
Error: Gradle task assembleDebug failed with exit code 1
I tried to redirect
gradle
related path with environment path and gradle property file, but neither work:
Copy code
❯ flutter run -d emulator-5554 -Porg.gradle.user.home=/Users/me/.gradle

❯ export GRADLE_USER_HOME=/Users/me/.gradle/
❯ export ANDROID_GRADLE_USER_HOME=/Users/me/.gradle/

❯ cat android/gradle.properties 
gradle.user.home=/Users/me/.gradle/
android.gradle.user.home=/Users/me/.gradle/
android.overridePathCheck=true
Is it possible to redirect gradle cache path to solve this?
v
I see a lot of "flutter" in your output. I guess you might be better off asking in some Flutter community or at least move your question to #C03EM93810S 🤷‍♂️
j
@Vampire It was triggered by flutter, but the error message focus on
gradle
.
@Vampire And thanks for Vampire's remind, I try to post it at #C03EM93810S.
v
Not really, it tells you there is an error during Kotlin compilation, so that's outside Gradle again. And concretely it complains about some file missing that is in some Flutter path. To me, this does from a cursory look not at all look like a Gradle issue. 🤷‍♂️