$ gradle build Calculating task graph as no cached configuration is available for tasks: build FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':app:distTar'. > Could not resolve all dependencies for configuration ':app:runtimeClasspath'. > Failed to calculate the value of task ':app:compileJava' property 'javaCompiler'. > Cannot find a Java installation on your machine (Linux 6.16.12 amd64) matching: {languageVersion=21, vendor=any vendor, implementation=vendor-specific, nativeImageCapable=false}. Some toolchain resolvers had provisioning failures: foojay (Unable to download toolchain matching the requirements ({languageVersion=21, vendor=any vendor, implementation=vendor-specific, nativeImageCapable=false}) from 'https://api.foojay.io/disco/v3.0/ids/b41931cf1e70bc8e08d7dd19c343ef00/redirect', due to: Unpacked JDK archive does not contain a Java home: /home/maxim/.gradle/.tmp/jdks/OpenJDK21U-jdk_x64_linux_hotspot_21-any-vendor-216642061878673945173.tmp). * Try: > Learn more about toolchain auto-detection and auto-provisioning at https://docs.gradle.org/9.2.1/userguide/toolchains.html#sec:auto_detection. > Learn more about toolchain repositories at https://docs.gradle.org/9.2.1/userguide/toolchains.html#sub:download_repositories. > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to generate a Build Scan (powered by Develocity). > Get more help at https://help.gradle.org. BUILD FAILED in 24s Configuration cache entry stored.